Commit 4d3cb3fe authored by Robert Labudda's avatar Robert Labudda
Browse files

sshmount

parent 7f012fdc
#!/bin/bash
BASEDIR=~/mnt/sshfs
if [ "$1" == "-u" ]
then
if [ "$2" == "-a" ]
then
for i in $(ls $BASEDIR)
do
fusermount3 -u $BASEDIR/"$i"
rmdir $BASEDIR/"$i"
done
else
fusermount3 -u $BASEDIR/"$2"
rmdir $BASEDIR/"$2"
fi
else
mkdir -p $BASEDIR/"$1"
sshfs "$1":/ $BASEDIR/"$1"
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment