add armv7 and armv8 binarys

This commit is contained in:
Xu Zhaowei 2021-08-15 09:50:33 +08:00
parent 5ba3d90e40
commit 188161654a
1 changed files with 21 additions and 0 deletions

21
mitool.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
arch=`cat /proc/cpuinfo | grep architecture | sed -n '1p' | awk -F ':' '{printf $2}'`
if [ $arch == 8 ];then
tool=mitool_arm64
else
tool=mitool_arm
fi
if [ "$1" == "unlock" ];then
/tmp/$tool unlock
elif [ "$1" == "hack" ];then
/tmp/$tool hack
elif [ "$1" == "lock" ];then
/tmp/$tool lock
elif [ "$1" == "password" ];then
/tmp/$tool password
elif [ "$1" == "model" ];then
/tmp/$tool model
else
echo "what?"
fi