aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-02-05 01:47:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-02-05 01:47:47 +0000
commit49080689d964de417c9bd5c4dc731ec7aa1bd82c (patch)
tree2853c7ec110abfc825cf74905d2f0f061f554c67
parent2e4ccd2aada91c77be16de9ec6c16b4d2ad080d7 (diff)
downloadupstream-49080689d964de417c9bd5c4dc731ec7aa1bd82c.tar.gz
upstream-49080689d964de417c9bd5c4dc731ec7aa1bd82c.tar.bz2
upstream-49080689d964de417c9bd5c4dc731ec7aa1bd82c.zip
add an extra safety check
SVN-Revision: 10389
-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 5ad45ecdba..af4eae23f5 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