mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 05:24:56 +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"
|
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
|
||||||
|
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user