From: John Crispin Date: Sat, 30 Apr 2016 16:53:27 +0000 (+0000) Subject: base-files: fix group/user settings after sysupgrade X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8c6bab50bc5a93c3f9e5e85bce9e554e359d2a2c;p=openwrt%2Fsvn-archive%2Farchive.git base-files: fix group/user settings after sysupgrade Signed-off-by: John Crispin SVN-Revision: 49276 --- 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