diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-30 05:22:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-30 05:22:16 +0000 |
commit | 55b55f686124a40c859dbb0607af513263f1016f (patch) | |
tree | 1482e621ebfd8c0f2d104c1f224651525f7961a1 /package/madwifi/files/etc | |
parent | e606b1603bd65ac4ecf4e60d4ca20d5296f0ecee (diff) | |
download | upstream-55b55f686124a40c859dbb0607af513263f1016f.tar.gz upstream-55b55f686124a40c859dbb0607af513263f1016f.tar.bz2 upstream-55b55f686124a40c859dbb0607af513263f1016f.zip |
madwifi: change the network scripts to use the new wds sta separation feature
SVN-Revision: 12005
Diffstat (limited to 'package/madwifi/files/etc')
-rw-r--r-- | package/madwifi/files/etc/hotplug.d/net/10-madwifi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/madwifi/files/etc/hotplug.d/net/10-madwifi b/package/madwifi/files/etc/hotplug.d/net/10-madwifi new file mode 100644 index 0000000000..f5afce3f21 --- /dev/null +++ b/package/madwifi/files/etc/hotplug.d/net/10-madwifi @@ -0,0 +1,12 @@ +if [ "$ACTION" = "add" -o "$ACTION" = "register" ]; then + case "$INTERFACE" in + ath*.sta*) + local BASEIF="${INTERFACE%%\.*}" + + include /lib/network + scan_interfaces + local CONFIG="$(find_config "$BASEIF")" + [ -n "$CONFIG" ] && setup_interface "$INTERFACE" "$CONFIG" + ;; + esac +fi |