#!/bin/sh # Copyright (C) 2006 Krzysztof Kozlowski # License: GNU General Public License version 2 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # version 2 as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # # Homepage: http://www.kozik.net.pl # # Last change: 23.09.2006 # # Mounting usermount shares. Requirements (from Gentoo Portage): # - in kernel CONFIG_FUSE_FS (or module from sys-fs/fuse) # - sys-fs/fuse # - sys-fs/sshfs-fuse (for SSH mounting) # - net-fs/curlftpfs (for FTP mounting) # # See examples below # usage () { echo "Usage: $(basename $0) " exit 127 } if [ $# -ne 1 ]; then usage fi MNT_TREE="/mnt/userfs" case "$1" in # # Examples # # SSH and FTP example: # Usage: umount_userfs my_ssh_site # Usage: umount_userfs my_ftp_site #my_ssh_site|my_ftp_site) # fusermount -u ${MNT_TREE}/${1} # ;; # # End - examples # *) usage ;; esac