This commit is contained in:
modehua 2023-04-15 14:03:58 +08:00
parent b0f99c6493
commit 098861313f
1 changed files with 2 additions and 1 deletions

View File

@ -382,9 +382,10 @@ 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" ];
if [ "${oem:0-2:2}" != "so" ] && [ "${oem:0-3:3}" != "web" ];
then
#创建sane的文件目录 //必须保证这一步成功
exit 1
rm -rf dpkg/$dpkgtype/$oem/usr/lib/*
if [ $? -ne 0 ];then
echo "del sane file fail"