aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/etc
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-30 05:22:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-30 05:22:16 +0000
commite910ed851b99d8532ee16b61c1ebb6a8f2638978 (patch)
tree62aec6eb7cac7e7b0d8458ecdc94b7b1063a6bb2 /package/madwifi/files/etc
parentcb1328bacfe419b5e60a94004e1cb558d404a440 (diff)
downloadupstream-e910ed851b99d8532ee16b61c1ebb6a8f2638978.tar.gz
upstream-e910ed851b99d8532ee16b61c1ebb6a8f2638978.tar.bz2
upstream-e910ed851b99d8532ee16b61c1ebb6a8f2638978.zip
madwifi: change the network scripts to use the new wds sta separation feature
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12005 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files/etc')
-rw-r--r--package/madwifi/files/etc/hotplug.d/net/10-madwifi12
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