Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. test -f /var/run/wifi.pid || wifi wdog
  2. wstat=$(grep $wdev: /proc/net/dev|if read l;then set ${l#*:};echo $1;fi)
  3. ostat=$(cat /var/run/status.$wdev 2>&-)
  4. echo $wstat>/var/run/status.$wdev
  5. eval $(/usr/sbin/wl -i $wdev status|sed -e"s/^Supported //;s/: \+\([^ ]*\)/='\1';/g")
  6. rand=$(dd if=/dev/urandom bs=2 count=1 2>&-|hexdump|if read line;then echo 0x${line#* };fi)
  7. ff_bssid=$(nvram get ff_bssid|sed -e "y/abcdef/ABCDEF/")
  8. BSSID=$(echo $BSSID|sed -e "y/abcdef/ABCDEF/")
  9. ff_ping=$(nvram get ff_ping)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement