diff --git a/build.sh b/build.sh index 2b2f4c0..8ed76d6 100755 --- a/build.sh +++ b/build.sh @@ -89,6 +89,11 @@ then dpkgtype=kylin sanelibname="${oem%${oem:0-3:3}*}" 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" ]; then 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 -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 #创建sane的文件目录 //必须保证这一步成功