From bb6161c347e0b354c080a3c28dae874b56fc0f31 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 2 Jul 2014 06:51:37 -0500 Subject: [PATCH] deb: cleanup comming to *.deb name Signed-off-by: Robert Nelson --- lib/debian-finish.sh | 6 +++--- lib/ubuntu-finish.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/debian-finish.sh b/lib/debian-finish.sh index 73c3416..372d181 100644 --- a/lib/debian-finish.sh +++ b/lib/debian-finish.sh @@ -139,12 +139,12 @@ chmod u+x /etc/init.d/board_tweaks.sh insserv board_tweaks.sh || true #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 - dpkg -x /boot/uboot/linux-image-*_1.0*_arm*.deb / +if [ -f /boot/uboot/linux-image-*arm*.deb ] ; then + dpkg -x /boot/uboot/linux-image-*arm*.deb / update-initramfs -c -k `uname -r` cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage 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 rm -f /boot/uboot/vmlinuz- || true fi diff --git a/lib/ubuntu-finish.sh b/lib/ubuntu-finish.sh index d85a218..6e4a563 100644 --- a/lib/ubuntu-finish.sh +++ b/lib/ubuntu-finish.sh @@ -172,12 +172,12 @@ cat > /etc/init/board_tweaks.conf <<-__EOF__ __EOF__ #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 - dpkg -x /boot/uboot/linux-image-*_1.0*_arm*.deb / +if [ -f /boot/uboot/linux-image-*arm*.deb ] ; then + dpkg -x /boot/uboot/linux-image-*arm*.deb / update-initramfs -c -k `uname -r` cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage 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: mv /boot/uboot/bootdrive /boot/uboot/backup/ || true