Browse Source

base-files: fix group/user settings after sysupgrade

Signed-off-by: John Crispin <[email protected]>
John Crispin 10 years ago
parent
commit
4a8e960c62
1 changed files with 11 additions and 0 deletions
  1. 11 0
      package/base-files/files/etc/uci-defaults/13_fix_group_user

+ 11 - 0
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