mirror of http://192.168.10.4:8099/sane/dpkg.git
设置密码
This commit is contained in:
parent
da6182e777
commit
da233350d1
6
build.sh
6
build.sh
|
@ -1,4 +1,5 @@
|
||||||
oem=$1 #厂商
|
oem=$1 #厂商
|
||||||
|
password="hg123123" #电脑密码
|
||||||
cpu=$(arch) #cpu架构
|
cpu=$(arch) #cpu架构
|
||||||
sys=$(cat /etc/issue)
|
sys=$(cat /etc/issue)
|
||||||
sys=${sys%% *} #操作系统
|
sys=${sys%% *} #操作系统
|
||||||
|
@ -19,6 +20,11 @@ minver=$(cat ../sdk/include/huagao/brand.h |grep VERSION_SUB)
|
||||||
minver=${minver: -2}
|
minver=${minver: -2}
|
||||||
minver=$(echo $minver)
|
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" ];
|
if [ "$oem" != "hg" ] && [ "$oem" != "lsc" ] && [ "$oem" != "hw" ] && [ "$oem" != "hgweb" ] && [ "$oem" != "lscweb" ] && [ "$oem" != "hwweb" ] && [ "$oem" != "hgso" ] && [ "$oem" != "lscso" ] && [ "$oem" != "hwso" ];
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue