iwlist 389 B

123456789101112
  1. #!/bin/sh
  2. #On the V2, for some reason iCamera runs "sh -c iwlist wlan0 scan | grep 'ESSID:"<your wifi ssid>"' every 5 seconds.
  3. #Let's fake the output, and increase put some sleep in to increase the "scan" times to every xx seconds to reduce load
  4. ssid=$(cat /tmp/wpa_supplicant.conf | grep "ssid=\"" | cut -d'"' -f 2)
  5. echo -e " ESSID:\""$ssid"\"\n"
  6. sleep 60
  7. exit 0