base-files: fix group/user settings after sysupgrade
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
ed07ef1601
commit
4a8e960c62
11
package/base-files/files/etc/uci-defaults/13_fix_group_user
Normal file
11
package/base-files/files/etc/uci-defaults/13_fix_group_user
Normal file
@ -0,0 +1,11 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user