Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- phy=phy0
- dev=wlan0
- dir="/sys/kernel/debug/ieee80211/$phy/netdev:$dev/stations"
- inotifywait -me create "$dir" 2>/dev/null |while read dir event mac ; do
- read vht_capa <"$dir/$mac/vht_capa"
- [ "$vht_capa" = '^VHT not supported' ] && hostapd_cli ban "$mac"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement