⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mount.fuse

📁 file system in user space ! It s very good!
💻 FUSE
字号:
#!/bin/sh## FUSE mount helper# Petr Klima <qaxi@seznam.cz># Thanks to Miklos Szeredi <miklos@szeredi.hu># to kick me to the right way#VERSION="0.0.2"PRGNAME=`basename $0`if [ -z "$HOME" ]; then    HOME=/rootfiexport HOMEUSAGE="${PRGNAME} version ${VERSION}usage: ${PRGNAME} fusefs_type#[mountpath] mountpoint [FUSE options]	example: ${PRGNAME} sshfs#root@tux:/ /mnt/tuxssh -o rw"die() {	echo "$PRGNAME# $1" >&2	[ -z "$2" ] && exit 128	exit "$2"}[ "$#" -ge 2 ] || die "${USAGE}"# for now i have to be same as FUSE mount binary# should be configurableeval `echo "$1" | sed -n 's,\(^[^#][^#]*\)\(#\(.*\)\)*,FSTYPE="\1" MOUNTPATH="\3",p'`export PATHFSBIN=`which ${FSTYPE} 2>/dev/null` \	|| die "Can not find FUSE mount binary for FS ${FSTYPE}" 1# was there an # in $1[ "$1" = "$MOUNTPATH" ] && MOUNTPATH=""MOUNTPOINT="$2"[ -d "${MOUNTPOINT}" ] || die "Directory ${MOUNTPOINT} does not exist"shiftshift# loop over each mount option and skip all that should be ignoredIFS=","for OPT in $@; do	OPT=`echo $OPT | sed "s/^\(-o\|user\|nouser\|users\|auto\|noauto\|_netdev\)$/IGNORE/"`	if [ "$OPT" == "IGNORE" ]; then continue; fi	OPTIONS="$OPTIONS$OPT,"doneIFS=" "# add "-o " and remove trailing commaOPTIONS="-o `echo $OPTIONS | sed "s/,$//"`"if test -z "$MOUNTPATH"; then    "${FSTYPE}" "${MOUNTPOINT}" ${OPTIONS}else    "${FSTYPE}" "${MOUNTPATH}" "${MOUNTPOINT}" ${OPTIONS}fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -