Commit 02e9d5eb authored by Joanne Hugé's avatar Joanne Hugé

Support ORS numbers over 99

parent 4d4598aa
...@@ -18,6 +18,13 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli ...@@ -18,6 +18,13 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
done done
export OCP_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)" export OCP_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
adm="12345678" adm="12345678"
plmn="00101"
# Albania
#plmn="27603"
# Aruba
#plmn="36301"
#plmn="00112"
#plmn="99999"
if [ -z "$2" ]; then if [ -z "$2" ]; then
imsioffset=1 imsioffset=1
else else
...@@ -27,8 +34,8 @@ let imsinum=$1*10+$imsioffset ...@@ -27,8 +34,8 @@ let imsinum=$1*10+$imsioffset
j=y j=y
while read j ; do while read j ; do
[[ $j = "q" ]] && exit [[ $j = "q" ]] && exit
i=$(printf "%03d" $imsinum) i=$(printf "%05d" $imsinum)
echo programming imsi: $i echo programming imsi: $i
sudo $OCP_DIR/program_uicc --adm ${adm} --iccid 89860061100000000$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 let imsinum=$imsinum+1
done 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