include functions and network config in hotplug
[openwrt-10.03/.git] / package / base-files / default / sbin / hotplug
index 57ee969cf7b488b2d351f601b5916f688f403092..4e009593af3b56c8aba1d4bc1f8c708b7562d619 100755 (executable)
@@ -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