hotplug-based network script rewrite
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / default / sbin / hotplug
index 4e009593af3b56c8aba1d4bc1f8c708b7562d619..e53b2afcc57f31e28a403b0d03017ba4e24f48a1 100755 (executable)
@@ -1,7 +1,11 @@
 #!/bin/sh
+[ -e /tmp/.failsafe ] && {
+       export FAILSAFE=true
+} || {
+       [ -e /etc/config/network ] && . /etc/config/network
+}
 . /etc/functions.sh
 . /etc/network.overrides
-[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
 
 PATH=/bin:/sbin:/usr/bin:/usr/sbin
 LOGNAME=root