diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-08-25 11:57:56 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-08-25 11:57:56 +0000 |
commit | 0201b83e8639c777f555d9aab3ead06e55178336 (patch) | |
tree | aef4a350a9e0c384ddcd9976007ffb8c55738ee3 /openwrt/package/base-files/default/etc | |
parent | 0122b4a5767a976b9e4888ec928e9f624fb87e5a (diff) | |
download | mtk-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/etc')
3 files changed, 3 insertions, 3 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S40network b/openwrt/package/base-files/default/etc/init.d/S40network index c4226d3..df7c6b3 100755 --- a/openwrt/package/base-files/default/etc/init.d/S40network +++ b/openwrt/package/base-files/default/etc/init.d/S40network @@ -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 diff --git a/openwrt/package/base-files/default/etc/init.d/S45firewall b/openwrt/package/base-files/default/etc/init.d/S45firewall index c998601..066bded 100755 --- a/openwrt/package/base-files/default/etc/init.d/S45firewall +++ b/openwrt/package/base-files/default/etc/init.d/S45firewall @@ -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) diff --git a/openwrt/package/base-files/default/etc/init.d/S50dnsmasq b/openwrt/package/base-files/default/etc/init.d/S50dnsmasq index 31d0a36..cce9575 100755 --- a/openwrt/package/base-files/default/etc/init.d/S50dnsmasq +++ b/openwrt/package/base-files/default/etc/init.d/S50dnsmasq @@ -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 |