From cd4bb39601c3803de352b0b958a4967e90289490 Mon Sep 17 00:00:00 2001 From: soumenganguly Date: Wed, 22 Apr 2015 10:19:09 +0530 Subject: Modified contents of recovery.sh to incorporate changes for GUI tool. --- reinstall-recovery/recovery.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reinstall-recovery/recovery.sh b/reinstall-recovery/recovery.sh index 5ff7265..ee8c115 100644 --- a/reinstall-recovery/recovery.sh +++ b/reinstall-recovery/recovery.sh @@ -110,13 +110,13 @@ installation() #Insert progress bar here. #Check the no. of partitions on the SD card. 1?regular-backup!incremental-backup. - part_no_two=$(ls /dev/mmcblk0* | echo $a | cut -d' ' -f3) #Check for the second partition on the SD card. - if [ $part_no_2 = '' ]; then + part_no_two=$(ls /dev/mmcblk0* | echo $part_no_two | cut -d' ' -f3) #Check for the second partition on the SD card. + if [ $part_no_two ='' ]; then sh /mnt/bar /sd_card/fossee-os.tar.gz | tar xzpf - -C /nand_previous sync else mount /dev/mmcblk0p2 /tmp - sh /mnt/bar cp -a /tmp /nand_previous + cp -a /tmp /nand_previous umount /dev/mmcblk0p2 umount $ubuntu_dir -- cgit