From 6a99326b9ede47b2e9b5d37c5af98dd00993162d Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 30 Apr 2016 16:53:27 +0000 Subject: base-files: fix group/user settings after sysupgrade Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49276 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/uci-defaults/13_fix_group_user | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/base-files/files/etc/uci-defaults/13_fix_group_user 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 -- cgit v1.2.3