From da233350d1141249e70271e7488d8c7790d18f82 Mon Sep 17 00:00:00 2001 From: modehua Date: Wed, 28 Sep 2022 17:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.sh b/build.sh index 81aa241..3c59761 100755 --- a/build.sh +++ b/build.sh @@ -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