From 49080689d964de417c9bd5c4dc731ec7aa1bd82c Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Tue, 5 Feb 2008 01:47:47 +0000
Subject: [PATCH] add an extra safety check

SVN-Revision: 10389
---
 package/base-files/files/etc/functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.30.2