Skip to content

Instantly share code, notes, and snippets.

@nklatt
nklatt / mountsshfs
Last active August 29, 2015 14:11 — forked from pete-otaqui/mountsshfs
mountsshfs with addition of MOUNT_AS variable
#!/bin/sh
## http://ubuntuforums.org/showthread.php?t=430312
## The script will attempt to mount any fstab entry with an option
## "...,comment=$SELECTED_STRING,..."
## Use this to select specific sshfs mounts rather than all of them.
SELECTED_STRING="sshfs"
## mount as user, default = "root"
MOUNT_AS="root"