don't load config files in failsafe mode

SVN-Revision: 1750
master
Felix Fietkau 19 years ago
parent 0122b4a576
commit 0201b83e86
  1. 2
      openwrt/package/base-files/default/etc/init.d/S40network
  2. 2
      openwrt/package/base-files/default/etc/init.d/S45firewall
  3. 2
      openwrt/package/base-files/default/etc/init.d/S50dnsmasq
  4. 2
      openwrt/package/base-files/default/sbin/ifdown
  5. 2
      openwrt/package/base-files/default/sbin/ifup

@ -1,6 +1,6 @@
#!/bin/sh
. /etc/functions.sh
[ -e /etc/config/network ] && . /etc/config/network
[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
case "$1" in
start|restart)
ifup lan

@ -5,7 +5,7 @@ ${FAILSAFE:+exit}
. /etc/functions.sh
. /etc/network.overrides
[ -e /etc/config/network ] && . /etc/config/network
[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
WAN=$(nvram get wan_ifname)
LAN=$(nvram get lan_ifname)

@ -1,7 +1,7 @@
#!/bin/sh
. /etc/functions.sh
. /etc/network.overrides
[ -e /etc/config/network] && . /etc/config/network
[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
# interface to use for DHCP
iface=lan

@ -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)

@ -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 ###"

Loading…
Cancel
Save