aboutsummaryrefslogtreecommitdiffstats
path: root/target/default/target_skeleton/sbin/hotplug
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2005-02-06 00:58:10 +0000
committerMike Baker <mbm@openwrt.org>2005-02-06 00:58:10 +0000
commit93b40a26e0c35b2e0ca256647e5ab21f6817e196 (patch)
treec9858d0b30c5bb5ac8dbab9462c5c56849f0331b /target/default/target_skeleton/sbin/hotplug
parent6beed4602a645145cf500bfd211985eece93e35d (diff)
downloadmaster-187ad058-93b40a26e0c35b2e0ca256647e5ab21f6817e196.tar.gz
master-187ad058-93b40a26e0c35b2e0ca256647e5ab21f6817e196.tar.bz2
master-187ad058-93b40a26e0c35b2e0ca256647e5ab21f6817e196.zip
openwrt root
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@212 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/default/target_skeleton/sbin/hotplug')
-rwxr-xr-xtarget/default/target_skeleton/sbin/hotplug7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/default/target_skeleton/sbin/hotplug b/target/default/target_skeleton/sbin/hotplug
new file mode 100755
index 0000000000..335ee8f889
--- /dev/null
+++ b/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
+}