diff options
author | sgk | 2015-05-21 10:37:29 +0530 |
---|---|---|
committer | sgk | 2015-05-21 10:37:29 +0530 |
commit | f526209dd8a8a17f66b398d897c241577bd18e0a (patch) | |
tree | be4d5acabfcae86d0d65f54ec42abf99ccd2aad5 | |
parent | 6aafaec09d63da33e71f3ca13adb67642763f2e3 (diff) | |
download | FOSSEE-netbook-tools-f526209dd8a8a17f66b398d897c241577bd18e0a.tar.gz FOSSEE-netbook-tools-f526209dd8a8a17f66b398d897c241577bd18e0a.tar.bz2 FOSSEE-netbook-tools-f526209dd8a8a17f66b398d897c241577bd18e0a.zip |
Add waiting_for (GUI)
add waiting_for GUI to
- formatforIncremental()
- formatforComplete()
-rw-r--r-- | incremental-complete-backup/backup-tool.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/incremental-complete-backup/backup-tool.sh b/incremental-complete-backup/backup-tool.sh index 8775464..007cfd0 100644 --- a/incremental-complete-backup/backup-tool.sh +++ b/incremental-complete-backup/backup-tool.sh @@ -128,6 +128,8 @@ fi # 2nd to ext4 and mount under /mnt # # ------------------------------------------------------------# formatforIncremental() { +source easybashgui +wait_for "Formating SDcard..."; umount /media/$USER/* echo $password |sudo -S mkdir -p /mnt/boot /mnt/rootfs echo -e "o\nn\np\n1\n\n+100M\nn\np\n2\n\n\nw"|sudo fdisk /dev/$dev_name # delete old partition table and creating new @@ -135,6 +137,7 @@ sudo mkfs.vfat /dev/$dev_name*1 sudo mkfs -t ext4 /dev/$dev_name*2 sudo mount -t vfat /dev/$dev_name*1 /mnt/boot -o rw,uid=1000,gid=1000 sudo mount /dev/$dev_name*2 /mnt/rootfs +terminate_wait_for } # ------------------------------------------------------------# # formatforComplete() unmount the mounted partitions, create # @@ -142,11 +145,14 @@ sudo mount /dev/$dev_name*2 /mnt/rootfs # # # ------------------------------------------------------------# formatforComplete() { +source easybashgui +wait_for "Formating Sdcard..."; umount /media/$USER/* echo $password |sudo -S mkdir -p /mnt/boot echo -e "o\nn\np\n1\n\n\nw"|sudo fdisk /dev/$dev_name # delete old partition table and creating new sudo mkfs.vfat /dev/$dev_name*1 sudo mount -t vfat /dev/$dev_name*1 /mnt/boot -o rw,uid=1000,gid=1000 +terminate_wait_for } ################################################################################### |