Skip to content

Commit

Permalink
tici: only write eSIM connection once
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Dec 16, 2024
1 parent 5018cf7 commit b293068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/hardware/tici/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ def configure_modem(self):
pass

# eSIM prime
if sim_id.startswith('8985235'):
dest = "/etc/NetworkManager/system-connections/esim.nmconnection"
dest = "/etc/NetworkManager/system-connections/esim.nmconnection"
if sim_id.startswith('8985235') and not os.path.exists(dest):
with open(Path(__file__).parent/'esim.nmconnection') as f, tempfile.NamedTemporaryFile(mode='w') as tf:
dat = f.read()
dat = dat.replace("sim-id=", f"sim-id={sim_id}")
Expand Down

0 comments on commit b293068

Please sign in to comment.