Commit d354407e authored by Boxiang Sun's avatar Boxiang Sun

write-sim-card: Support more than 10 sim cards

See merge request !1
parents 34ec7e2d 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 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
$SOURCE_DIR/program_uicc_pcsc --port usb:$usb_opt --adm ${adm} --iccid 89860061100000$i --imsi ${plmn}0000$i --isdn 0600$i --acc 0001 --key 00112233445566778899AABBCCDDEEFF --opc 000102030405060708090A0B0C0D0E0F -spn "RS-ORS$1-$i" --authenticate --noreadafter
let imsioffset=$imsioffset+1
echo
echo "Press enter when you have entered the new SIM card (or 'q' to quit)"
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment