设置密码

This commit is contained in:
modehua 2022-09-28 17:55:52 +08:00
parent da6182e777
commit da233350d1
1 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,5 @@
oem=$1 #厂商
password="hg123123" #电脑密码
cpu=$(arch) #cpu架构
sys=$(cat /etc/issue)
sys=${sys%% *} #操作系统
@ -19,6 +20,11 @@ minver=$(cat ../sdk/include/huagao/brand.h |grep VERSION_SUB)
minver=${minver: -2}
minver=$(echo $minver)
if [ $2 ];
then
password=$2
fi
echo "$password"
if [ "$oem" != "hg" ] && [ "$oem" != "lsc" ] && [ "$oem" != "hw" ] && [ "$oem" != "hgweb" ] && [ "$oem" != "lscweb" ] && [ "$oem" != "hwweb" ] && [ "$oem" != "hgso" ] && [ "$oem" != "lscso" ] && [ "$oem" != "hwso" ];
then