From: John Crispin Date: Fri, 29 Apr 2016 01:30:52 +0000 (+0200) Subject: base-files: fix group/user settings after sysupgrade X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4a8e960c6227f5fb2c8ca9c04d55938f901388fa;p=openwrt%2Fstaging%2Fyousong.git base-files: fix group/user settings after sysupgrade Signed-off-by: John Crispin --- 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