From f68f6c95f8e11fc5b3e0d71aec7a6e8daf909c89 Mon Sep 17 00:00:00 2001 From: Ricardo Martins Date: Mon, 11 Aug 2014 16:43:05 +0100 Subject: [PATCH] filesystem: fixed upgrade script. --- rules/filesystem/fs/etc/rc.d/upgrade | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/rules/filesystem/fs/etc/rc.d/upgrade b/rules/filesystem/fs/etc/rc.d/upgrade index ff6b559..0b7cb84 100644 --- a/rules/filesystem/fs/etc/rc.d/upgrade +++ b/rules/filesystem/fs/etc/rc.d/upgrade @@ -130,11 +130,9 @@ uboot_part_upgrade() echo 'done' for f in MLO u-boot.img; do - if [ -f /mnt/MLO ]; then - echo -en "* $label: Replacing $f... " - cp "$base/.glued-new/boot/$f" /mnt - echo 'done' - fi + echo -en "* $label: Replacing $f... " + cp "$base/.glued-new/boot/$f" /mnt + echo 'done' done echo -en "* $label: unmounting bootloader partition... " @@ -160,7 +158,7 @@ uboot_part_upgrade_check() # Check if board is a IGEPv2. dmesg | grep -i 'machine model' | grep -i igepv2 - if [ $? -ne 0 ]; then + if [ $? -eq 0 ]; then uboot_part_upgrade 'IGEPv2' '/dev/mmcblk0p1' return 0 fi