J'ai créé des lanceurs pour mes montages SSHFS (locaux et distants) --->
Script Mount-SERVER-Stock_WD_Red_4To_SSHFS.sh :
michel@Michel-T450:~/Mes_Scripts$ cat Mount-SERVER-Stock_WD_Red_4To_SSHFS.sh
#!/bin/bash
# monter ou démonter Stock Serveur local ou distant
result=`ping -c1 Michel-SERVER | grep "1 received"`
if [[ $result = "" ]]
then
if [ ! `/bin/mount | grep -o /media/SERVER_Stock_WD_Red_4To` ]
then
sshfs michel@123.123.13.12:/media/Stock_WD_Red_4To /media/SERVER_Stock_WD_Red_4To
else
fusermount -u /media/SERVER_Stock_WD_Red_4To
fi
else
if [ ! `/bin/mount | grep -o /media/SERVER_Stock_WD_Red_4To` ]
then
sshfs michel@XXX-xxx:/media/Stock_WD_Red_4To /media/SERVER_Stock_WD_Red_4To
else
fusermount -u /media/SERVER_Stock_WD_Red_4To
fi
fi
michel@Michel-T450:~/Mes_Scripts$
Thunar SERVER_Stock_WD_Red_4To monté --->