iw-scan.sh 292 B

1234567891011121314
  1. #!/bin/bash
  2. ## SuperGlue project | http://superglue.it | 2014 | GPLv3
  3. ## http://git.superglue.it/superglue/serverfiles
  4. ##
  5. ## iw-scan.sh - scan for wireless networks
  6. iwScan() {
  7. set -o noglob
  8. local S=$(ubus -S call iwinfo scan '{"device":"wlan0"}')
  9. printf '%b' "$S"
  10. set +o noglob
  11. }