|
macadresser="`qcsapi_sockrpc get_station_mac_addr wifi0 $antal`;$macadresser" |
This command may fail if the number of macs change between the get_count_assoc and the get_station_mac_addr.
I added this in my version, to break the loop if the mac index is out of range:
mac=`qcsapi_sockrpc get_station_mac_addr wifi0 $antal`
if [ $? -ne 0 ]; then
break;
fi
macadresser="$mac;$macadresser"
Makes sense? I haven't actually seen it fail though...
SmartThings/smartapps/fuzzysb/asuswrt-wifi-presence.src/CheckIfHome
Line 21 in e293839
This command may fail if the number of macs change between the
get_count_assocand theget_station_mac_addr.I added this in my version, to break the loop if the mac index is out of range:
Makes sense? I haven't actually seen it fail though...