This commit is contained in:
luoliangyi 2024-10-18 16:05:33 +08:00
parent 1156ab2a3b
commit cff7ba1dc0
1 changed files with 6 additions and 1 deletions

View File

@ -89,6 +89,11 @@ then
dpkgtype=kylin dpkgtype=kylin
sanelibname="${oem%${oem:0-3:3}*}" sanelibname="${oem%${oem:0-3:3}*}"
echo $sanelibname echo $sanelibname
elif [ "${oem:0-7:7}" == "webscan" ];
then
dpkgtype=kylin
sanelibname="${oem%${oem:0-7:7}*}"
echo $sanelibname
elif [ "${oem:0-4:4}" == "tool" ]; elif [ "${oem:0-4:4}" == "tool" ];
then then
sanelibname="${oem%${oem:0-4:4}*}" sanelibname="${oem%${oem:0-4:4}*}"
@ -564,7 +569,7 @@ rm dpkg/$dpkgtype/$oem/etc/udev/rules.d/*
cp dpkg/60-sane.rules dpkg/$dpkgtype/$oem/etc/udev/rules.d/60-"$oem"sane.rules cp dpkg/60-sane.rules dpkg/$dpkgtype/$oem/etc/udev/rules.d/60-"$oem"sane.rules
if [ "${oem:0-2:2}" != "so" ] && [ "${oem:0-3:3}" != "web" ] && [ "${oem:0-4:4}" != "tool" ]; if [ "${oem:0-2:2}" != "so" ] && [ "${oem:0-3:3}" != "web" ] && [ "${oem:0-7:7}" != "webscan" ] && [ "${oem:0-4:4}" != "tool" ];
then then
#创建sane的文件目录 //必须保证这一步成功 #创建sane的文件目录 //必须保证这一步成功