diff --git a/all/modules/sshfs/sshfs.sh b/all/modules/sshfs/sshfs.sh index 2633b9e..fe731cb 100755 --- a/all/modules/sshfs/sshfs.sh +++ b/all/modules/sshfs/sshfs.sh @@ -1,6 +1,7 @@ #!/bin/bash # depends on sshfs fuse for ssh -module_load filesystem +module_load filesystem # mounted +module_load net-utils # host_reachable function smount(){ local HOST @@ -10,9 +11,10 @@ if [[ $(mounted $2) ]]; then echo "remote $1 already mounted at $2, aborting mount" else echo "mounting via ssh" - echo sshfs "$@" -o default_permissions + echo sshfs "$*" mkdir -p $2 - sshfs "$@" -o default_permissions + # can add any options after mount point directory like -o default_permissions + sshfs "$@" fi }