summaryrefslogtreecommitdiffstats
path: root/openwrt/package/base-files/default/etc/hotplug.d/net
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-07 01:12:51 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-07 01:12:51 +0000
commit5dfad9395848f74699752473b825635c30fb5567 (patch)
tree523205d7071063e42f742aeabadd523f78b8504f /openwrt/package/base-files/default/etc/hotplug.d/net
parentbdd94763c1c3c236e2bd8b2282dad526e08bbb66 (diff)
add hotplug stuff to trunk/
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2364 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/base-files/default/etc/hotplug.d/net')
-rw-r--r--openwrt/package/base-files/default/etc/hotplug.d/net/01-wds5
1 files changed, 5 insertions, 0 deletions
diff --git a/openwrt/package/base-files/default/etc/hotplug.d/net/01-wds b/openwrt/package/base-files/default/etc/hotplug.d/net/01-wds
new file mode 100644
index 000000000..38bd69667
--- /dev/null
+++ b/openwrt/package/base-files/default/etc/hotplug.d/net/01-wds
@@ -0,0 +1,5 @@
+[ "${INTERFACE%%[0-9]*}" = "wds" ] && {
+ ifconfig $INTERFACE 0.0.0.0 up
+ /usr/sbin/brctl addif br0 $INTERFACE
+}
+