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 目标目录"