From 51d47ba15e193e6c95a82784878601e1c1de44f4 Mon Sep 17 00:00:00 2001 From: mbm Date: Sun, 6 Feb 2005 00:58:10 +0000 Subject: openwrt root git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@212 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/default/target_skeleton/sbin/hotplug | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 target/default/target_skeleton/sbin/hotplug (limited to 'target/default/target_skeleton/sbin/hotplug') diff --git a/target/default/target_skeleton/sbin/hotplug b/target/default/target_skeleton/sbin/hotplug new file mode 100755 index 000000000..335ee8f88 --- /dev/null +++ b/target/default/target_skeleton/sbin/hotplug @@ -0,0 +1,7 @@ +#!/bin/ash +# $Id$ +[ "${INTERFACE%%[0-9]*}" = "wds" ] && { + [ -x "/usr/sbin/nas" ] && /usr/sbin/nas lan $INTERFACE up + ifconfig $INTERFACE 0.0.0.0 up + /usr/sbin/brctl addif br0 $INTERFACE +} -- cgit v1.2.3