Browse Source

add an extra safety check

SVN-Revision: 10389
Felix Fietkau 18 years ago
parent
commit
49080689d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/base-files/files/etc/functions.sh

+ 1 - 1
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