check lpac installed

pull/35314/head
Trey Moen 1 week ago
parent 12091ea416
commit 303af75bbe
  1. 4
      system/hardware/tici/esim.py

@ -2,6 +2,7 @@
import json import json
import os import os
import shutil
import subprocess import subprocess
import time import time
@ -21,6 +22,9 @@ class LPA:
self.timeout_sec = 45 self.timeout_sec = 45
if shutil.which('lpac') is None:
raise LPAError('lpac not found, must be installed!')
def list_profiles(self) -> list[dict[str, str]]: def list_profiles(self) -> list[dict[str, str]]:
msgs = self._invoke('profile', 'list') msgs = self._invoke('profile', 'list')
self._validate_successful(msgs) self._validate_successful(msgs)

Loading…
Cancel
Save