From bc03f2180d76d275f5b2c2039289c84f8e6ff0d1 Mon Sep 17 00:00:00 2001 From: Danielfeng Date: Wed, 5 Dec 2012 13:44:57 +0800 Subject: [PATCH] add init sshfs install and help script --- init.sh | 1 + sbin/init_sshfs.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 sbin/init_sshfs.sh diff --git a/init.sh b/init.sh index cfff3dd..834ab0a 100755 --- a/init.sh +++ b/init.sh @@ -22,6 +22,7 @@ $TOOLS_DIR/init_yum.sh #$TOOLS_DIR/init_rsync.sh #$TOOLS_DIR/init_hostname.sh #$TOOLS_DIR/init_vimrc.sh +#$TOOLS_DIR/init_sshfs.sh exit diff --git a/sbin/init_sshfs.sh b/sbin/init_sshfs.sh new file mode 100755 index 0000000..1f198fd --- /dev/null +++ b/sbin/init_sshfs.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +# Author : danielfeng +# E-Mail : danielfancy@gmail.com + +rpm -q fuse-sshfs || yum -y install fuse-sshfs + +echo "Usage: sshfs root@远程挂载主机IP地址:/目录 /目标目录" +echo "Usage: 卸载 fusermount -u 目标目录"