functions: Provide a method to read the SIM ID

We can use the identifier of the SIM as a stable token to derive a
deterministic IMEI rather than the IMSI which is only available once the
SIM has been (PIN) unlocked.
This commit is contained in:
Tobias Mueller 2023-10-18 20:57:19 +02:00
parent 1a052c57e2
commit dfbcbe7506
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ RANDOMIZE_MACADDR () {
# You need to restart the network, i.e. /etc/init.d/network restart
}
READ_ICCID() {
gl_modem AT AT+CCID
}
READ_IMEI () {
local answer=1
while [[ "$answer" -eq 1 ]]; do