summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/uci-defaults
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-04-29 03:30:52 +0200
committerJohn Crispin <blogic@openwrt.org>2016-04-29 04:15:34 +0200
commit4a8e960c6227f5fb2c8ca9c04d55938f901388fa (patch)
tree0fc48e87ff48e6dd79ef822d4badd5fc411595e7 /package/base-files/files/etc/uci-defaults
parented07ef1601a1fa36764c61a87e5f927309d68025 (diff)
downloadmtk-20170518-4a8e960c6227f5fb2c8ca9c04d55938f901388fa.zip
mtk-20170518-4a8e960c6227f5fb2c8ca9c04d55938f901388fa.tar.gz
mtk-20170518-4a8e960c6227f5fb2c8ca9c04d55938f901388fa.tar.bz2
base-files: fix group/user settings after sysupgrade
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/base-files/files/etc/uci-defaults')
-rw-r--r--package/base-files/files/etc/uci-defaults/13_fix_group_user11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/base-files/files/etc/uci-defaults/13_fix_group_user b/package/base-files/files/etc/uci-defaults/13_fix_group_user
new file mode 100644
index 0000000..deade5b
--- /dev/null
+++ b/package/base-files/files/etc/uci-defaults/13_fix_group_user
@@ -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