Permalink
Browse files

Add support for mounting from /etc/fstab

Fixes: #92.
  • Loading branch information...
Nikratio committed Sep 20, 2017
1 parent 848ff30 commit 949d76d1a2c508f034f23c36d34400204698d952
Showing with 32 additions and 0 deletions.
  1. +1 −0 ChangeLog.rst
  2. +4 −0 meson.build
  3. +8 −0 sshfs.rst
  4. +19 −0 utils/install_helper.sh
View
@@ -1,6 +1,7 @@
Unreleased Changes
------------------
* Add support for mounting from /etc/fstab
* Dropped support for building with autotools.
* Added missing options to man page.
View
@@ -63,6 +63,10 @@ else
message('rst2man not found, not building manual page.')
endif
meson.add_install_script('utils/install_helper.sh',
get_option('sbindir'),
get_option('bindir'))
subdir('test')
View
@@ -253,6 +253,14 @@ without SSHFS being informed about that. As a workaround, you can try
to mount with ``-o ServerAliveInterval=15``. This will force the SSH
connection to stay alive even if you have no activity.
Mounting from /etc/fstab
========================
To mount an SSHFS filesystem from ``/etc/fstab``, simply use ``sshfs`
as the file system type. (For backwards compatibility, you may also
use ``fuse.sshfs``).
See also
========
View
@@ -0,0 +1,19 @@
#!/bin/sh
#
# Don't call this script. It is used internally by the Meson
# build system. Thank you for your cooperation.
#
set -e
bindir="$2"
sbindir="$1"
prefix="${MESON_INSTALL_DESTDIR_PREFIX}"
mkdir -p "${prefix}/${sbindir}"
ln -svf --relative "${prefix}/${bindir}/sshfs" \
"${prefix}/${sbindir}/mount.sshfs"
ln -svf --relative "${prefix}/${bindir}/sshfs" \
"${prefix}/${sbindir}/mount.fuse.sshfs"

0 comments on commit 949d76d

Please sign in to comment.