From: nbd Date: Tue, 5 Feb 2008 01:47:47 +0000 (+0000) Subject: add an extra safety check X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/b079d40fb75e515e41c9e9555c0a2e89a90196bb add an extra safety check git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10389 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/files/etc/functions.sh b/package/base-files/files/etc/functions.sh index 5ad45ecdb..af4eae23f 100755 --- a/package/base-files/files/etc/functions.sh +++ b/package/base-files/files/etc/functions.sh @@ -208,4 +208,4 @@ uci_apply_defaults() {( uci commit )} -[ -z "$IPKG_INSTROOT" ] && . /lib/config/uci.sh +[ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh