#!/bin/sh . /bin/vs/cgi-bin/netenv.conf . /bin/vs/cgi-bin/net_func.sh #. $wifi_config wifim=$(wifi_getmode) #wpa_cli -i $iface scan > /dev/null 2>&1 if [ $wifim = NONE ] then wifi_sta_start wifi_scan outputwifiscanresult wifi_sta_stop else wifi_scan outputwifiscanresult fi