mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-11 12:22:14 +08:00
faster modem restart
old-commit-hash: 5ac22d80de5c37e059768ad210bee91cc73e025c
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
nmcli connection modify --temporary lte gsm.auto-config yes
|
||||
nmcli connection modify --temporary lte gsm.home-only yes
|
||||
nmcli connection modify --temporary lte gsm.auto-config yes
|
||||
nmcli connection modify --temporary lte connection.autoconnect-retries 20
|
||||
|
||||
# restart modem
|
||||
sudo systemctl stop ModemManager
|
||||
/usr/comma/lte/lte.sh stop_blocking
|
||||
sudo systemctl restart lte
|
||||
|
||||
# full restart
|
||||
#/usr/comma/lte/lte.sh stop_blocking
|
||||
#sudo systemctl restart lte
|
||||
|
||||
# quick shutdown
|
||||
/usr/comma/lte/lte.sh stop
|
||||
nmcli con down lte
|
||||
|
||||
#sudo systemctl restart ModemManager
|
||||
sudo ModemManager --debug
|
||||
|
||||
Reference in New Issue
Block a user