Backup: tentative to umount external HD in the script at the end

This commit is contained in:
Bruno F. Fontes 2020-05-21 16:06:22 -03:00
parent 7a4059035c
commit 9ae2401091
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
2 changed files with 5 additions and 2 deletions

View File

@ -70,4 +70,8 @@ kdialog --title "Backup Complete" --msgbox "Backup finished successfully"
echo "Press any key to close" echo "Press any key to close"
read read
#Umount device
device=$(mount | grep Backup_$LastDisk | cut -d " " -f1)
udisksctl unmount -b $device && udisksctl power-off -b $device
exit exit

View File

@ -1,2 +1 @@
terminator -m -T BACKUP -x sudo systemd-inhibit bash .Backup_HD_1TB.sh terminator -m -T BACKUP -x sudo systemd-inhibit bash .Backup_HD_1TB.sh &
exit