aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
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
parented07ef1601a1fa36764c61a87e5f927309d68025 (diff)
downloadupstream-4a8e960c6227f5fb2c8ca9c04d55938f901388fa.tar.gz
upstream-4a8e960c6227f5fb2c8ca9c04d55938f901388fa.tar.bz2
upstream-4a8e960c6227f5fb2c8ca9c04d55938f901388fa.zip
base-files: fix group/user settings after sysupgrade
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/base-files/files/etc')
-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 0000000000..deade5bbd1
--- /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