aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
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
commit6797c87a70b1bb7947e13ba540bb578d6d46f507 (patch)
tree8fc4bfd6181e2b5400f40e7a19d01e8263dddc16 /package/base-files
parentc1193693228d5830cf6a65d871771a3603e439d7 (diff)
downloadupstream-6797c87a70b1bb7947e13ba540bb578d6d46f507.tar.gz
upstream-6797c87a70b1bb7947e13ba540bb578d6d46f507.tar.bz2
upstream-6797c87a70b1bb7947e13ba540bb578d6d46f507.zip
add an extra safety check
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10389 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-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