调整shell

This commit is contained in:
modehua 2022-10-12 17:02:49 +08:00
parent 43fac18652
commit 21a45749f3
1 changed files with 33 additions and 7 deletions

View File

@ -229,18 +229,44 @@ 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/*
if [ "$oem" == "lscsm" ];then
cp release/$syspath/$cpu/libsane-lscsane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-lscsane.so.1
if [ "$cpu" == "mips64" ]; then
rm dpkg/$syspath/$oem/usr/lib/*
if [ ! -d dpkg/$syspath/$oem/usr/lib/$libpath ]
mkdir dpkg/$syspath/$oem/usr/lib/$libpath/sane
mkdir dpkg/$syspath/$oem/usr/lib/"mips64el-linux-gunabi64"/sane
if [ "$oem" == "lscsm" ];then
cp release/$syspath/$cpu/libsane-lscsane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-lscsane.so.1
cp release/$syspath/$cpu/libsane-lscsane.so dpkg/$syspath/$oem/usr/lib/"mips64el-linux-gunabi64"/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
cp release/$syspath/$cpu/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/"mips64el-linux-gunabi64"/sane/libsane-"$oem"sane.so
fi
fi
if [ $? != 0 ];then
echo "-----------------cp mips64el libsane fail ,not find libsane-----------------"
exit 1
fi
else
cp release/$syspath/$cpu/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1
mv dpkg/$syspath/$oem/usr/lib/* dpkg/$syspath/$oem/usr/lib/$libpath
rm dpkg/$syspath/$oem/usr/lib/$libpath/sane/*
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
fi
if [ $? != 0 ];then
echo "-----------------cp libsane fail ,not find libsane-----------------"
exit 1
fi
exit 1
fi
echo "11111111111111111111111111111111111111111111111111111"
sleep 3
fi