aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-08-27 15:40:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-08-27 15:40:56 +0000
commitb4466422c894a43e093bedb341b16e8e7839004b (patch)
tree681f7a870d4ba428f3286ba741badacf63197767 /package/base-files/files
parent95689ed7ac21e3a705bae12a0884a984db238d95 (diff)
downloadupstream-b4466422c894a43e093bedb341b16e8e7839004b.tar.gz
upstream-b4466422c894a43e093bedb341b16e8e7839004b.tar.bz2
upstream-b4466422c894a43e093bedb341b16e8e7839004b.zip
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 0000000000..74134e848a
--- /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
+}