1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
svn-openwrt-archive/package/base-files/files/etc/uci-defaults/13_fix_group_user
John Crispin 3136a1beb9 base-files: fix group/user settings after sysupgrade
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49276
2016-04-30 16:53:27 +00:00

12 lines
199 B
Bash

#!/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