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
d354407e
Commit
d354407e
authored
Nov 28, 2024
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Plain Diff
write-sim-card: Support more than 10 sim cards
See merge request
!1
parents
34ec7e2d
9249afbd
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 @
d354407e
...
@@ -25,17 +25,17 @@ if [ -z "$2" ]; then
...
@@ -25,17 +25,17 @@ if [ -z "$2" ]; then
else
else
imsioffset
=
$2
imsioffset
=
$2
fi
fi
let
imsinum
=
$1
*
10+
$imsioffset
j
=
y
j
=
y
echo
echo
echo
"Press enter when you have entered the SIM card"
echo
"Press enter when you have entered the SIM card"
while
read
j
;
do
while
read
j
;
do
[[
$j
=
"q"
]]
&&
exit
[[
$j
=
"q"
]]
&&
exit
i
=
$(
printf
"%05d"
$imsinum
)
let shift
=
10
**${#
imsioffset
}
i
=
$(
printf
"%06d"
$((
$1
*
$shift
+
$imsioffset
))
)
echo
programming imsi:
$i
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
$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
num
=
$imsinum
+1
let
imsi
offset
=
$imsioffset
+1
echo
echo
echo
"Press enter when you have entered the new SIM card (or 'q' to quit)"
echo
"Press enter when you have entered the new SIM card (or 'q' to quit)"
done
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