diff options
author | John Crispin <blogic@openwrt.org> | 2016-04-29 03:30:52 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2016-04-29 04:15:34 +0200 |
commit | 4a8e960c6227f5fb2c8ca9c04d55938f901388fa (patch) | |
tree | 0fc48e87ff48e6dd79ef822d4badd5fc411595e7 | |
parent | ed07ef1601a1fa36764c61a87e5f927309d68025 (diff) | |
download | mtk-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>
-rw-r--r-- | package/base-files/files/etc/uci-defaults/13_fix_group_user | 11 |
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 |