Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ors-utils
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ors-utils
Commits
02e9d5eb
Commit
02e9d5eb
authored
May 22, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support ORS numbers over 99
parent
4d4598aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
uicc-v2.4/write-sim-card
uicc-v2.4/write-sim-card
+9
-2
No files found.
uicc-v2.4/write-sim-card
View file @
02e9d5eb
...
...
@@ -18,6 +18,13 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
done
export
OCP_DIR
=
"
$(
cd
-P
"
$(
dirname
"
$SOURCE
"
)
"
&&
pwd
)
"
adm
=
"12345678"
plmn
=
"00101"
# Albania
#plmn="27603"
# Aruba
#plmn="36301"
#plmn="00112"
#plmn="99999"
if
[
-z
"
$2
"
]
;
then
imsioffset
=
1
else
...
...
@@ -27,8 +34,8 @@ let imsinum=$1*10+$imsioffset
j
=
y
while
read
j
;
do
[[
$j
=
"q"
]]
&&
exit
i
=
$(
printf
"%0
3
d"
$imsinum
)
i
=
$(
printf
"%0
5
d"
$imsinum
)
echo
programming imsi:
$i
sudo
$OCP_DIR
/program_uicc
--adm
${
adm
}
--iccid
898600611000000
00
$i
--imsi
001010000000
$i
--isdn
0600000
$i
--acc
0001
--key
00112233445566778899AABBCCDDEEFF
--opc
000102030405060708090A0B0C0D0E0F
-spn
"RS-ORS
$1
-0
$i
"
--authenticate
--noreadafter
sudo
$OCP_DIR
/program_uicc
--adm
${
adm
}
--iccid
898600611000000
$i
--imsi
${
plmn
}
00000
$i
--isdn
06000
$i
--acc
0001
--key
00112233445566778899AABBCCDDEEFF
--opc
000102030405060708090A0B0C0D0E0F
-spn
"RS-ORS
$1
-
$i
"
--authenticate
--noreadafter
let
imsinum
=
$imsinum
+1
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment