mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
8ca2e2852e
For APK installation we don't have /usr/lib/opkg/info and user fixup are handled dirrectly. Skip the script in such case. Also remove this uci-defaults if we have CONFIG_USE_APK enabled. Link: https://github.com/openwrt/openwrt/pull/15543 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 lines
278 B
Plaintext
13 lines
278 B
Plaintext
. /lib/functions.sh
|
|
|
|
# Skip if we don't have /usr/lib/opkg/info (APK installation)
|
|
[ -d /usr/lib/opkg/info ] || exit 0
|
|
|
|
for file in $(grep -sl Require-User /usr/lib/opkg/info/*.control); do
|
|
file="${file##*/}"
|
|
file="${file%.control}"
|
|
add_group_and_user "${file}"
|
|
done
|
|
|
|
exit 0
|