13 라인
386 B
Bash
13 라인
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
|