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
9249afbd
Commit
9249afbd
authored
Nov 28, 2024
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write-sim-card: Support more than 10 sim cards
Allow the imsinum can increase correctly above digit 10
parent
34ec7e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
uicc/write-sim-card
uicc/write-sim-card
+4
-4
No files found.
uicc/write-sim-card
View file @
9249afbd
...
...
@@ -25,17 +25,17 @@ if [ -z "$2" ]; then
else
imsioffset
=
$2
fi
let
imsinum
=
$1
*
10+
$imsioffset
j
=
y
echo
echo
"Press enter when you have entered the SIM card"
while
read
j
;
do
[[
$j
=
"q"
]]
&&
exit
i
=
$(
printf
"%05d"
$imsinum
)
let shift
=
10
**${#
imsioffset
}
i
=
$(
printf
"%06d"
$((
$1
*
$shift
+
$imsioffset
))
)
echo
programming imsi:
$i
$SOURCE_DIR
/program_uicc_pcsc
--port
usb:
$usb_opt
--adm
${
adm
}
--iccid
89860061100000
0
$i
--imsi
${
plmn
}
00000
$i
--isdn
060
00
$i
--acc
0001
--key
00112233445566778899AABBCCDDEEFF
--opc
000102030405060708090A0B0C0D0E0F
-spn
"RS-ORS
$1
-
$i
"
--authenticate
--noreadafter
let
imsi
num
=
$imsinum
+1
$SOURCE_DIR
/program_uicc_pcsc
--port
usb:
$usb_opt
--adm
${
adm
}
--iccid
89860061100000
$i
--imsi
${
plmn
}
0000
$i
--isdn
06
00
$i
--acc
0001
--key
00112233445566778899AABBCCDDEEFF
--opc
000102030405060708090A0B0C0D0E0F
-spn
"RS-ORS
$1
-
$i
"
--authenticate
--noreadafter
let
imsi
offset
=
$imsioffset
+1
echo
echo
"Press enter when you have entered the new SIM card (or 'q' to quit)"
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