This commit is contained in:
luoliangyi 2022-09-30 11:37:08 +08:00
parent cc62956f81
commit 4175004e25
1 changed files with 7 additions and 1 deletions

View File

@ -225,12 +225,18 @@ sed -i "1s/.*/$packagename/g" dpkg/$syspath/$oem/DEBIAN/control
sed -i "2s/.*/$Version/g" dpkg/$syspath/$oem/DEBIAN/control
sed -i "3s/.*/$Architecture/g" dpkg/$syspath/$oem/DEBIAN/control
rm dpkg/$syspath/$oem/etc/udev/rules.d/*
cp dpkg/60-sane.rules dpkg/$syspath/$oem/etc/udev/rules.d/60-"$oem"sane.rules
if [ -d "dpkg/$syspath/$oem/usr/lib" ];then
mv dpkg/$syspath/$oem/usr/lib/* dpkg/$syspath/$oem/usr/lib/$libpath
rm dpkg/$syspath/$oem/usr/lib/$libpath/sane/*
cp release/$syspath/$cpu/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1
if [ "$oem" == "lscsm" ];then
cp release/$syspath/$cpu/libsane-lscsane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-lscsane.so.1
else
cp release/$syspath/$cpu/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1
fi
echo "11111111111111111111111111111111111111111111111111111"
sleep 3
fi