I have got internet LTE from usb stick working in NDIS mode with cdc_ncm driver.
Sometimes router lost connection with ISP and there is only one solution - hard reset.
Below is usefull script for automatic rebooting if internet is gone:
if grep 'cdc_ncm: usb0: network connection: disconnected' "/tmp/syslog.log"; then
echo "LTE OFF"
echo -n > /tmp/syslog.log
reboot
else
echo "LTE ON"
fi
You should also add running of this script in cron every 2 minutes -> */2* * * *
Sometimes router lost connection with ISP and there is only one solution - hard reset.
Below is usefull script for automatic rebooting if internet is gone:
if grep 'cdc_ncm: usb0: network connection: disconnected' "/tmp/syslog.log"; then
echo "LTE OFF"
echo -n > /tmp/syslog.log
reboot
else
echo "LTE ON"
fi
You should also add running of this script in cron every 2 minutes -> */2* * * *
Last edited: