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 &