sshfs-mapper: Auto will be disabled by default (prepare option).

git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1390 eaee96b3-f302-0410-b096-c6cfd47f7835
This commit is contained in:
glenux 2009-06-18 16:18:18 +00:00
parent 69a4bcb292
commit b92f14c951

View file

@ -105,10 +105,14 @@ EOF
SSHFS_HOST_PATTERN=" " SSHFS_HOST_PATTERN=" "
SSHFS_HOST_LIMIT=0 SSHFS_HOST_LIMIT=0
SSHFS_HOST_LIST=0 SSHFS_HOST_LIST=0
SSHFS_HOST_AUTO=0
#TODO:while getopts h:u o #TODO:while getopts h:u o
while getopts hiuls: o while getopts ahiuls: o
do do
case "$o" in case "$o" in
a) # mount all
SSHFS_HOST_AUTO=1
;;
i) # init (copy config files in user HOME) i) # init (copy config files in user HOME)
do_initialize do_initialize
;; ;;
@ -170,6 +174,10 @@ for map_file in `find "$SSHFS_DIR" -type f -name '*.map' `; do
if ! echo "$SSHFS_HOST_PATTERN" | grep -q " `basename ${map_file/.map/}` " ; then if ! echo "$SSHFS_HOST_PATTERN" | grep -q " `basename ${map_file/.map/}` " ; then
continue continue
fi fi
else
if [ $SSHFS_HOST_AUTO -eq 0 ]; then
continue
fi
fi fi
remote_host=$( read_conf $map_file REMOTE_HOST ) remote_host=$( read_conf $map_file REMOTE_HOST )
remote_user=$( read_conf $map_file REMOTE_USER ) remote_user=$( read_conf $map_file REMOTE_USER )