Added script to close ssh connection on suspend system

This commit is contained in:
Damien Broqua 2022-01-05 08:06:02 +01:00
parent 1cfbafe4ab
commit 7e870a26f9
2 changed files with 11 additions and 0 deletions

5
bin/mountMusic.sh Executable file
View File

@ -0,0 +1,5 @@
#! /bin/bash
ssh -f clara -L 2222:dmc-12.mousur.int:22 -N
sshfs -p 2222 dbroqua@127.0.0.1:/srv/dev-disk-by-label-storage/medias/Music ~/Music

View File

@ -0,0 +1,6 @@
#! /bin/bash
if [ "${1}" == "pre" ]; then
umount /home/dbroqua/Music
killall ssh
fi