From 86baf3d5e43afd5b22bb41deb25b372a5a1a162a Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Sat, 4 Mar 2017 20:26:46 +0800 Subject: [PATCH] base-files: enable presence of uci when IPKG_INSTROOT is set Signed-off-by: Yousong Zhou --- package/base-files/files/lib/functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index b68db6b6bd..de3fa96730 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -35,7 +35,6 @@ list_contains() { } config_load() { - [ -n "$IPKG_INSTROOT" ] && return 0 uci_load "$@" } @@ -353,4 +352,4 @@ user_exists() { grep -qs "^${1}:" ${IPKG_INSTROOT}/etc/passwd } -[ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh +. $IPKG_INSTROOT/lib/config/uci.sh -- 2.30.2