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 | 733dc9776268432e5188cc496da92137c820f016 (patch) | |
| tree | a919b3d5402d4e22697ec2a49d1b005424f25104 /openwrt/package/base-files/default/sbin/hotplug | |
| parent | 9a8a69c0b82a6c128831e75200489ed397d44f44 (diff) | |
| download | mtk-20170518-733dc9776268432e5188cc496da92137c820f016.zip mtk-20170518-733dc9776268432e5188cc496da92137c820f016.tar.gz mtk-20170518-733dc9776268432e5188cc496da92137c820f016.tar.bz2 | |
hotplug-based network script rewrite
SVN-Revision: 2531
Diffstat (limited to 'openwrt/package/base-files/default/sbin/hotplug')
| -rwxr-xr-x | openwrt/package/base-files/default/sbin/hotplug | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/sbin/hotplug b/openwrt/package/base-files/default/sbin/hotplug index 4e00959..e53b2af 100755 --- a/openwrt/package/base-files/default/sbin/hotplug +++ b/openwrt/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 |
