调整oem 代码

This commit is contained in:
13038267101 2022-08-04 17:24:58 +08:00
parent 74a0a54bc9
commit d15a275eec
1 changed files with 26 additions and 22 deletions

View File

@ -14,28 +14,7 @@ minver="14"
ver3=10
ver3=$[$ver3 * 10]
if [ "$cpu" == "x86_64" ]; then
ver3=$[$ver3 + 1]
elif [ "$cpu" == "aarch64" ]; then
ver3=$[$ver3 + 2]
elif [ "$cpu" == "mips64" ]; then
ver3=$[$ver3 + 3]
fi
ver3=$[$ver3 * 100]
if [ "$sys" == "UnionTech" ];then
# uos ...
ver3=$[$ver3 + 20]
elif [ "$sys" == "Kylin" ];then
# kylin ...
ver3=$[$ver3 + 21]
else
# unknown OS, set as linux
ver3=$[$ver3 + 10]
fi
echo "3rd version replacing pattern: "${ver3}
if [ "$oem" != "hg" ] && [ "$oem" != "lsc" ] && [ "$oem" != "hw" ] && [ "$oem" != ""hgweb ] && [ "$oem" != ""lscweb ] && [ "$oem" != ""hwweb ];
then
@ -97,21 +76,46 @@ else
syspath="kylin"
if [ "$oem" == "hw" ] ;then
ver3=14
dpkgpath="scanner-driver-hanvon"
elif [ "$oem" == "lsc" ];then
ver3=16
dpkgpath="scanner-driver-lanxum"
elif [ "$oem" == "hg" ];then
dpkgpath="scanner-driver-huagao"
elif [ "$oem" == "hgweb" ];then
dpkgpath="huagaowebscan"
elif [ "$oem" == "lscweb" ];then
ver3=14
dpkgpath="lanxumwebscan"
elif [ "$oem" == "hwweb" ];then
ver3=16
dpkgpath="hanvonwebscan"
fi
fi
ver3=$[$ver3 * 10]
if [ "$cpu" == "x86_64" ]; then
ver3=$[$ver3 + 1]
elif [ "$cpu" == "aarch64" ]; then
ver3=$[$ver3 + 2]
elif [ "$cpu" == "mips64" ]; then
ver3=$[$ver3 + 3]
fi
ver3=$[$ver3 * 100]
if [ "$sys" == "UnionTech" ];then
# uos ...
ver3=$[$ver3 + 20]
elif [ "$sys" == "Kylin" ];then
# kylin ...
ver3=$[$ver3 + 21]
else
# unknown OS, set as linux
ver3=$[$ver3 + 10]
fi
echo "3rd version replacing pattern: "${ver3}
echo $dpkgpath
ver="$mainverstr.$minver.$ver3.$time2"
echo $ver