summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumenganguly2015-04-22 10:19:09 +0530
committersoumenganguly2015-04-22 10:19:09 +0530
commitcd4bb39601c3803de352b0b958a4967e90289490 (patch)
tree2339ce5c18cb533efa2e8a0faaefb4a451b37519
parent1343b04eb47287889649b502d7acd04afb9242c1 (diff)
downloadFOSSEE-netbook-tools-cd4bb39601c3803de352b0b958a4967e90289490.tar.gz
FOSSEE-netbook-tools-cd4bb39601c3803de352b0b958a4967e90289490.tar.bz2
FOSSEE-netbook-tools-cd4bb39601c3803de352b0b958a4967e90289490.zip
Modified contents of recovery.sh to incorporate changes for GUI tool.
-rw-r--r--reinstall-recovery/recovery.sh6
1 files 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