summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/sbin/ifup
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-08-25 11:57:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-08-25 11:57:56 +0000
commit0201b83e8639c777f555d9aab3ead06e55178336 (patch)
treeaef4a350a9e0c384ddcd9976007ffb8c55738ee3 /openwrt/package/base-files/default/sbin/ifup
parent0122b4a5767a976b9e4888ec928e9f624fb87e5a (diff)
downloadmtk-20170518-0201b83e8639c777f555d9aab3ead06e55178336.zip
mtk-20170518-0201b83e8639c777f555d9aab3ead06e55178336.tar.gz
mtk-20170518-0201b83e8639c777f555d9aab3ead06e55178336.tar.bz2
don't load config files in failsafe mode
SVN-Revision: 1750
Diffstat (limited to 'openwrt/package/base-files/default/sbin/ifup')
-rwxr-xr-xopenwrt/package/base-files/default/sbin/ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/sbin/ifup b/openwrt/package/base-files/default/sbin/ifup
index 6aa9987..c46fff6 100755
--- a/openwrt/package/base-files/default/sbin/ifup
+++ b/openwrt/package/base-files/default/sbin/ifup
@@ -2,7 +2,7 @@
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
. /etc/network.overrides
-[ -e /etc/config/network ] && . /etc/config/network
+[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
type=$1
debug "### ifup $type ###"