aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/etc/hotplug.d/net/10-madwifi
diff options
context:
space:
mode:
Diffstat (limited to 'package/madwifi/files/etc/hotplug.d/net/10-madwifi')
-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