diff options
| author | Mike Baker <mbm@openwrt.org> | 2005-02-06 00:58:10 +0000 |
|---|---|---|
| committer | Mike Baker <mbm@openwrt.org> | 2005-02-06 00:58:10 +0000 |
| commit | 4745dbf6b69afeaae4dfee4e0981f4e1adf6616b (patch) | |
| tree | 4d80eccb1b3ac8b9efa5b0d1b503f01bb74d50f1 /openwrt/target/default/target_skeleton/sbin/hotplug | |
| parent | 0d928148bf5472938e03e641908fc7a6b384bf9b (diff) | |
| download | mtk-20170518-4745dbf6b69afeaae4dfee4e0981f4e1adf6616b.zip mtk-20170518-4745dbf6b69afeaae4dfee4e0981f4e1adf6616b.tar.gz mtk-20170518-4745dbf6b69afeaae4dfee4e0981f4e1adf6616b.tar.bz2 | |
openwrt root
SVN-Revision: 212
Diffstat (limited to 'openwrt/target/default/target_skeleton/sbin/hotplug')
| -rwxr-xr-x | openwrt/target/default/target_skeleton/sbin/hotplug | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openwrt/target/default/target_skeleton/sbin/hotplug b/openwrt/target/default/target_skeleton/sbin/hotplug new file mode 100755 index 0000000..335ee8f --- /dev/null +++ b/openwrt/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 +} |
