diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-11-19 03:17:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-11-19 03:17:20 +0000 |
commit | 041c66c348ee68f42d2bd2d15285867ba57558f2 (patch) | |
tree | 2baf8be2ba174420052f42d69c4fb042038093b8 /package/base-files/default/sbin/hotplug | |
parent | 6c56c9da834ec02df626b49c3d11c5d7dfa4b015 (diff) | |
download | master-187ad058-041c66c348ee68f42d2bd2d15285867ba57558f2.tar.gz master-187ad058-041c66c348ee68f42d2bd2d15285867ba57558f2.tar.bz2 master-187ad058-041c66c348ee68f42d2bd2d15285867ba57558f2.zip |
hotplug-based network script rewrite
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2531 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/sbin/hotplug')
-rwxr-xr-x | package/base-files/default/sbin/hotplug | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/default/sbin/hotplug b/package/base-files/default/sbin/hotplug index 4e009593af..e53b2afcc5 100755 --- a/package/base-files/default/sbin/hotplug +++ b/package/base-files/default/sbin/hotplug @@ -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 |