summaryrefslogtreecommitdiffstats
path: root/openwrt/target/default/target_skeleton/sbin/hotplug
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/target/default/target_skeleton/sbin/hotplug')
-rwxr-xr-xopenwrt/target/default/target_skeleton/sbin/hotplug7
1 files changed, 7 insertions, 0 deletions
diff --git a/openwrt/target/default/target_skeleton/sbin/hotplug b/openwrt/target/default/target_skeleton/sbin/hotplug
new file mode 100755
index 000000000..335ee8f88
--- /dev/null
+++ b/openwrt/target/default/target_skeleton/sbin/hotplug
@@ -0,0 +1,7 @@
+#!/bin/ash
+# $Id$
+[ "${INTERFACE%%[0-9]*}" = "wds" ] && {
+ [ -x "/usr/sbin/nas" ] && /usr/sbin/nas lan $INTERFACE up
+ ifconfig $INTERFACE 0.0.0.0 up
+ /usr/sbin/brctl addif br0 $INTERFACE
+}