test iwlist for v2

This commit is contained in:
Alfonso Gamboa
2022-05-23 20:28:53 -07:00
parent 5232be3167
commit 71eb6d795b
2 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/sh
#On the V2, for some reason iCamera runs "sh -c iwlist wlan0 scan | grep 'ESSID:"<your wifi ssid>"' every 5 seconds.
#Let's fake the output to reduce load
ssid=$(cat /tmp/wpa_supplicant.conf | grep "ssid=\"" | cut -d'"' -f 2)
echo -e " ESSID:\""$ssid"\"\n"
sleep 30
exit 0