mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 00:50:51 +00:00
Backup: tentative to umount external HD in the script at the end
This commit is contained in:
parent
7a4059035c
commit
9ae2401091
@ -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
|
||||
|
@ -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 &
|
||||
|
Loading…
Reference in New Issue
Block a user