summaryrefslogtreecommitdiffstats
path: root/openwrt/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-07 02:18:59 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-07 02:18:59 +0000
commit9c827a68c1fb88ce9cf47fe9d944c788390b8e70 (patch)
tree3e642034bf54349e60faa331f05f37bf762458a1 /openwrt/package
parent6cfdb8f029c806124d150e1d3d21bfe60f0d73fc (diff)
include functions and network config in hotplug
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2370 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package')
-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 57ee969cf..4e009593a 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