openwrtv3/package/base-files/files/etc/uci-defaults/13_fix_group_user
John Crispin 4a8e960c62 base-files: fix group/user settings after sysupgrade
Signed-off-by: John Crispin <john@phrozen.org>
2016-04-29 04:15:34 +02:00

11 lines
199 B
Bash

#!/bin/sh
. /lib/functions.sh
for file in `grep Require-User /usr/lib/opkg/info/*.control | cut -d: -f1`; do
file="${file##*/}"
file="${file%.control}"
add_group_and_user "${file}"
done
exit 0