diff options
author | John Crispin <blogic@openwrt.org> | 2016-04-30 16:53:27 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:17:20 +0200 |
commit | 6a99326b9ede47b2e9b5d37c5af98dd00993162d (patch) | |
tree | cc5a0fd69084c32ffc5e4305006b8c296c5d104e | |
parent | 899f8d5c564f7bdd567943d6682ec554f244f1f0 (diff) | |
download | master-187ad058-6a99326b9ede47b2e9b5d37c5af98dd00993162d.tar.gz master-187ad058-6a99326b9ede47b2e9b5d37c5af98dd00993162d.tar.bz2 master-187ad058-6a99326b9ede47b2e9b5d37c5af98dd00993162d.zip |
base-files: fix group/user settings after sysupgrade
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49276 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 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 |