From 5e29d9dfff96ca00c219a24e90b5d8bb7ed8ccdf Mon Sep 17 00:00:00 2001 From: Trey Moen Date: Tue, 20 May 2025 21:01:51 -0700 Subject: [PATCH] --reboot --- system/hardware/tici/esim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/hardware/tici/esim.py b/system/hardware/tici/esim.py index bbc37edd47..b517e9bf89 100755 --- a/system/hardware/tici/esim.py +++ b/system/hardware/tici/esim.py @@ -138,6 +138,7 @@ if __name__ == "__main__": parser.add_argument('--delete', metavar='iccid', help='delete a profile by ICCID') parser.add_argument('--download', nargs=2, metavar=('qr', 'name'), help='download a profile using QR code') parser.add_argument('--nickname', nargs=2, metavar=('iccid', 'name'), help='nickname for the downloaded profile') + parser.add_argument('--reboot', action='store_true', help='reboot the modem') args = parser.parse_args() lpa = LPA() @@ -157,8 +158,7 @@ if __name__ == "__main__": for p in profiles: print(f'- {p.iccid} (nickname: {p.nickname or "no nickname"}) (provider: {p.provider}) - {"enabled" if p.enabled else "disabled"}') - if "RESTART" in os.environ: - print("restarting modem") + if args.reboot: subprocess.check_call("sudo systemctl stop ModemManager", shell=True) subprocess.check_call("/usr/comma/lte/lte.sh stop_blocking", shell=True) subprocess.check_call("/usr/comma/lte/lte.sh start", shell=True)