From 9ae24010912854e4ff0ccc38c2004fda6f73f246 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Thu, 21 May 2020 16:06:22 -0300 Subject: [PATCH] Backup: tentative to umount external HD in the script at the end --- Backup/.Backup_HD_1TB.sh | 4 ++++ Backup/runBackup.sh | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Backup/.Backup_HD_1TB.sh b/Backup/.Backup_HD_1TB.sh index 04a4cfc..388f79d 100755 --- a/Backup/.Backup_HD_1TB.sh +++ b/Backup/.Backup_HD_1TB.sh @@ -70,4 +70,8 @@ kdialog --title "Backup Complete" --msgbox "Backup finished successfully" echo "Press any key to close" read + +#Umount device +device=$(mount | grep Backup_$LastDisk | cut -d " " -f1) +udisksctl unmount -b $device && udisksctl power-off -b $device exit diff --git a/Backup/runBackup.sh b/Backup/runBackup.sh index 038cf7e..c5f7a14 100755 --- a/Backup/runBackup.sh +++ b/Backup/runBackup.sh @@ -1,2 +1 @@ -terminator -m -T BACKUP -x sudo systemd-inhibit bash .Backup_HD_1TB.sh -exit +terminator -m -T BACKUP -x sudo systemd-inhibit bash .Backup_HD_1TB.sh &