diff options
Diffstat (limited to 'target/default/target_skeleton/sbin/hotplug')
-rwxr-xr-x | target/default/target_skeleton/sbin/hotplug | 7 |
1 files changed, 7 insertions, 0 deletions
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 +} |