12-07-2020, 07:08 AM
Hi,
Thank you for sharing your script, I've been using it and it worked well.
I also have this modem number that increments on each wakeup, so I've modified the script to get the number automatically :
MODEM_NUM=`mmcli -L|awk '{print $1}'|awk -F '/' '{print $6}'` ;
also, at some point, the wwan interface name changed (it got back to normal afterwards), so I also got to get the name automatically
INTERFACE=`ls /sys/class/net|grep ww -m 1`;
I sometimes have to reset the modem, but this mostly works.
I hope it will help
Regards,
--
FdL
Thank you for sharing your script, I've been using it and it worked well.
I also have this modem number that increments on each wakeup, so I've modified the script to get the number automatically :
MODEM_NUM=`mmcli -L|awk '{print $1}'|awk -F '/' '{print $6}'` ;
also, at some point, the wwan interface name changed (it got back to normal afterwards), so I also got to get the name automatically
INTERFACE=`ls /sys/class/net|grep ww -m 1`;
I sometimes have to reset the modem, but this mostly works.
I hope it will help
Regards,
--
FdL