make lte detection more generic (#208)

This commit is contained in:
Adeeb Shihadeh
2024-01-31 20:45:22 -08:00
committed by GitHub
parent abde006ba2
commit c214e6d27d
+2 -2
View File
@@ -30,7 +30,7 @@ function is_online {
for i in {0..30}
do
if [ -a /dev/cdc-wdm0 ]
if [ -a /dev/cdc-wdm0 ] || [ -a /dev/ttyACM0 ]
then
echo " Modem is online!"
return 0
@@ -48,7 +48,7 @@ function is_offline {
for i in {0..30}
do
if [ ! -e /dev/cdc-wdm0 ]
if [ ! -e /dev/cdc-wdm0 ] && [ ! -e /dev/ttyACM0 ]
then
echo " Modem is offline!"
return 0