Files
wyze-firmware/SD_ROOT/wz_mini/bin/iwlist
T
2022-05-28 05:39:07 -07:00

13 líneas
386 B
Bash

#!/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, and put some sleep time to increase the "scan" frequency to every xx seconds to reduce load
ssid=$(cat /tmp/wpa_supplicant.conf | grep "ssid=\"" | cut -d'"' -f 2)
echo -e " ESSID:\""$ssid"\"\n"
sleep 60
exit 0