From 4a8e960c6227f5fb2c8ca9c04d55938f901388fa Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 29 Apr 2016 03:30:52 +0200 Subject: base-files: fix group/user settings after sysupgrade Signed-off-by: John Crispin --- 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 0000000..deade5b --- /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.1