aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-07 02:18:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-07 02:18:59 +0000
commit1d0b2efd62c69ce10f80c217e7b708a1fbfe304f (patch)
tree3e642034bf54349e60faa331f05f37bf762458a1
parent0a8c594d0b0b7e3cb0170d76a5a3e11f59f85268 (diff)
downloadupstream-1d0b2efd62c69ce10f80c217e7b708a1fbfe304f.tar.gz
upstream-1d0b2efd62c69ce10f80c217e7b708a1fbfe304f.tar.bz2
upstream-1d0b2efd62c69ce10f80c217e7b708a1fbfe304f.zip
include functions and network config in hotplug
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2370 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xopenwrt/package/base-files/default/sbin/hotplug4
1 files changed, 4 insertions, 0 deletions
diff --git a/openwrt/package/base-files/default/sbin/hotplug b/openwrt/package/base-files/default/sbin/hotplug
index 57ee969cf7b..4e009593af3 100755
--- a/openwrt/package/base-files/default/sbin/hotplug
+++ b/openwrt/package/base-files/default/sbin/hotplug
@@ -1,4 +1,8 @@
#!/bin/sh
+. /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
USER=root