don't load config files in failsafe mode
[openwrt-10.03/.git] / package / base-files / default / sbin / ifdown
index 6b255cc1b87894ca14371cb3c3bdc6c2e6e92a3f..2d4054d8b3650a673cff2b425fe727ef2a0917e1 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/ash
 [ $# = 0 ] && { echo "  $0 <group>"; exit; }
 . /etc/functions.sh
+. /etc/network.overrides
+[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
 type=$1
 debug "### ifdown $type ###"
 if=$(nvram get ${type}_ifname)