Advertisement
teknoraver

aconly

Nov 19th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. phy=phy0
  4. dev=wlan0
  5. dir="/sys/kernel/debug/ieee80211/$phy/netdev:$dev/stations"
  6.  
  7. inotifywait -me create "$dir" 2>/dev/null |while read dir event mac ; do
  8.         read vht_capa <"$dir/$mac/vht_capa"
  9.         [ "$vht_capa" = '^VHT not supported' ] && hostapd_cli ban "$mac"
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement