X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5dfad9395848f74699752473b825635c30fb5567..ad37d55186f7e517c58f47b5d464b813ba8746f0:/openwrt/package/base-files/default/sbin/hotplug?ds=sidebyside diff --git a/openwrt/package/base-files/default/sbin/hotplug b/openwrt/package/base-files/default/sbin/hotplug index 57ee969cf..e53b2afcc 100755 --- a/openwrt/package/base-files/default/sbin/hotplug +++ b/openwrt/package/base-files/default/sbin/hotplug @@ -1,4 +1,12 @@ #!/bin/sh +[ -e /tmp/.failsafe ] && { + export FAILSAFE=true +} || { + [ -e /etc/config/network ] && . /etc/config/network +} +. /etc/functions.sh +. /etc/network.overrides + PATH=/bin:/sbin:/usr/bin:/usr/sbin LOGNAME=root USER=root