summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-04 09:40:57 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-04 09:40:57 +0000
commit83ad9f6c02a9bf92805b6cabcf47ee7082c26a9f (patch)
tree1090403575f82d2ad74cab6c5c030c95c56155de
parente748d3881e7368631d4052c0cc915927848e2a53 (diff)
yay! hotplug for wds support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xroot/sbin/hotplug6
1 files changed, 6 insertions, 0 deletions
diff --git a/root/sbin/hotplug b/root/sbin/hotplug
new file mode 100755
index 000000000..74134e848
--- /dev/null
+++ b/root/sbin/hotplug
@@ -0,0 +1,6 @@
+#!/bin/ash
+# $Id$
+[ "${INTERFACE%%[0-9]*}" = "wds" ] && {
+ ifconfig $INTERFACE 0.0.0.0 up
+ /usr/sbin/brctl addif br0 $INTERFACE
+}