summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-02-05 01:47:47 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-02-05 01:47:47 +0000
commitb079d40fb75e515e41c9e9555c0a2e89a90196bb (patch)
tree8fc4bfd6181e2b5400f40e7a19d01e8263dddc16
parentcb408bd0c006483475488d17bb840bdf29e438d8 (diff)
add an extra safety check
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10389 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/base-files/files/etc/functions.sh2
1 files changed, 1 insertions, 1 deletions
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