summaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-27 15:40:56 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-27 15:40:56 +0000
commitd37c5c518e40e35a4b21281c86de7ba2ab1df439 (patch)
tree681f7a870d4ba428f3286ba741badacf63197767 /package/base-files/files
parent969289416f43a1480f905513f63d4c74b3068540 (diff)
move hotplug script into an extra package so that it doesn't conflict with nas
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1772 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/hotplug6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/files/hotplug b/package/base-files/files/hotplug
new file mode 100755
index 000000000..74134e848
--- /dev/null
+++ b/package/base-files/files/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
+}