#!/bin/sh #Normal Version ### 0 灭(no wifi), 1 亮(wifi ok), 2 (wifi AP) 3(wifi wps) 4(wifi failed) #NoWifi(0) OFF #Wifi OK(1) ON # AP(2) 长闪烁 # WPS(3) 短闪烁 # FAILED(4) 一长3短 wifi_ledflash() { #####333320(81)/333321(k2) 晶传A1固件wifi闪灯需求 #####332330(L17)wifi闪灯需求/334330(L18)/338330(L22软开机)/342330(113带光敏) #####338321(L26)和L22相比少了一个抓拍按键 #####343321(T66)和L21的基本功能一样,但多了一个IRCUT,加对讲aac库 #####上述这些机型都按如下需求闪烁 if [ $1 == "1" ]; #wifi OK then #ledflash 1 1 0 #红灯亮 echo "wifi_connected" > /proc/rt/led elif [ $1 == "2" ]; #AP then #ledflash 1 2 0 #红灯慢闪 echo "ap_mode" > /proc/rt/led elif [ $1 == "4" ];#FAILED then #ledflash 1 3 0 #红灯快闪 echo "wifi_connect_error" > /proc/rt/led fi return ; }