deb: cleanup comming to *.deb name

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 11 years ago
parent 9251be0ea1
commit bb6161c347

@ -139,12 +139,12 @@ chmod u+x /etc/init.d/board_tweaks.sh
insserv board_tweaks.sh || true insserv board_tweaks.sh || true
#Install Correct Kernel Image: (this will fail if the boot partition was re-formated) #Install Correct Kernel Image: (this will fail if the boot partition was re-formated)
if [ -f /boot/uboot/linux-image-*_1.0*_arm*.deb ] ; then if [ -f /boot/uboot/linux-image-*arm*.deb ] ; then
dpkg -x /boot/uboot/linux-image-*_1.0*_arm*.deb / dpkg -x /boot/uboot/linux-image-*arm*.deb /
update-initramfs -c -k `uname -r` update-initramfs -c -k `uname -r`
cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage
cp /boot/initrd.img-`uname -r` /boot/uboot/initrd.img cp /boot/initrd.img-`uname -r` /boot/uboot/initrd.img
rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true rm -f /boot/uboot/linux-image-*arm*.deb || true
if [ -f /boot/uboot/vmlinuz- ] ; then if [ -f /boot/uboot/vmlinuz- ] ; then
rm -f /boot/uboot/vmlinuz- || true rm -f /boot/uboot/vmlinuz- || true
fi fi

@ -172,12 +172,12 @@ cat > /etc/init/board_tweaks.conf <<-__EOF__
__EOF__ __EOF__
#Install Correct Kernel Image: (this will fail if the boot partition was re-formated) #Install Correct Kernel Image: (this will fail if the boot partition was re-formated)
if [ -f /boot/uboot/linux-image-*_1.0*_arm*.deb ] ; then if [ -f /boot/uboot/linux-image-*arm*.deb ] ; then
dpkg -x /boot/uboot/linux-image-*_1.0*_arm*.deb / dpkg -x /boot/uboot/linux-image-*arm*.deb /
update-initramfs -c -k `uname -r` update-initramfs -c -k `uname -r`
cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage
cp /boot/initrd.img-`uname -r` /boot/uboot/initrd.img cp /boot/initrd.img-`uname -r` /boot/uboot/initrd.img
rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true rm -f /boot/uboot/linux-image-*arm*.deb || true
#Cleanup: #Cleanup:
mv /boot/uboot/bootdrive /boot/uboot/backup/ || true mv /boot/uboot/bootdrive /boot/uboot/backup/ || true

Loading…
Cancel
Save