23 lines
375 B
Bash
23 lines
375 B
Bash
#!/bin/sh
|
|
|
|
#get_wifi_module_path=/bin/vslocal/cgi-bin/getwifimoduletype.sh
|
|
|
|
#if [ -e $wifi_module_type ]
|
|
#then
|
|
# wifi_module_type=`$get_wifi_module_path`
|
|
#else
|
|
# wifi_module_type=7601
|
|
#fi
|
|
|
|
if [ ${wifi_module_type} == "7601" ]
|
|
then
|
|
lsusb | grep 7601 >/dev/null 2>&1
|
|
mt7601_online=$?
|
|
echo $mt7601_online
|
|
elif [ ${wifi_module_type} == "8189" ]
|
|
then
|
|
echo 0
|
|
else
|
|
echo 1
|
|
fi
|