aboutsummaryrefslogtreecommitdiffstats
path: root/root/sbin/hotplug
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2004-05-04 09:40:57 +0000
committerMike Baker <mbm@openwrt.org>2004-05-04 09:40:57 +0000
commit69a92ec0906ba3e06315dca79d75ec679f9ea1a4 (patch)
tree1090403575f82d2ad74cab6c5c030c95c56155de /root/sbin/hotplug
parent97f95ea18a11e22c07ab1391db0df16b815685f1 (diff)
downloadupstream-69a92ec0906ba3e06315dca79d75ec679f9ea1a4.tar.gz
upstream-69a92ec0906ba3e06315dca79d75ec679f9ea1a4.tar.bz2
upstream-69a92ec0906ba3e06315dca79d75ec679f9ea1a4.zip
yay! hotplug for wds support
SVN-Revision: 16
Diffstat (limited to 'root/sbin/hotplug')
-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 0000000000..74134e848a
--- /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
+}