summaryrefslogtreecommitdiffstats
path: root/openwrt/package/base-files/default/sbin/ifdown
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-25 11:57:56 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-25 11:57:56 +0000
commitdb684723c4cf2a2f7316f4c3bbeace9b0f2e3a17 (patch)
treeaef4a350a9e0c384ddcd9976007ffb8c55738ee3 /openwrt/package/base-files/default/sbin/ifdown
parentb0cb4335729ec3dcbf069f9bd03b6ddee82c70ea (diff)
don't load config files in failsafe mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1750 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/base-files/default/sbin/ifdown')
-rwxr-xr-xopenwrt/package/base-files/default/sbin/ifdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/sbin/ifdown b/openwrt/package/base-files/default/sbin/ifdown
index 950ee12db..2d4054d8b 100755
--- a/openwrt/package/base-files/default/sbin/ifdown
+++ b/openwrt/package/base-files/default/sbin/ifdown
@@ -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 "### ifdown $type ###"
if=$(nvram get ${type}_ifname)