From 8c6bab50bc5a93c3f9e5e85bce9e554e359d2a2c Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 30 Apr 2016 16:53:27 +0000 Subject: [PATCH] base-files: fix group/user settings after sysupgrade Signed-off-by: John Crispin SVN-Revision: 49276 --- .../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 -- 2.30.2