Change ecid hex to dec conversion

This commit is contained in:
LukeZGD 2023-08-30 21:27:36 +08:00
parent dd22438238
commit bcb605e340

View File

@ -555,7 +555,7 @@ device_get_info() {
device_entry device_entry
else else
device_type=$(echo "$device_type" | cut -c -$ProdCut) device_type=$(echo "$device_type" | cut -c -$ProdCut)
device_ecid=$((16#$($irecovery -q | grep "ECID" | cut -c 9-))) # converts hex ecid to dec device_ecid=$(printf "%d" $($irecovery -q | grep "ECID" | cut -c 7-)) # converts hex ecid to dec
fi fi
device_model=$($irecovery -q | grep "MODEL" | cut -c 8-) device_model=$($irecovery -q | grep "MODEL" | cut -c 8-)
device_vers=$(echo "/exit" | $irecovery -s | grep "iBoot-") device_vers=$(echo "/exit" | $irecovery -s | grep "iBoot-")