Ola pessoal....
Estou tentando configurar o autofs no slackware 9.0, porem estou tendo
problemas com o timeout dele, que esta configurado para 3 segundos.
Este e meu auto.master :
/vol /etc/auto.misc --timeout=3
E aqui meu auto.misc :
cdrom -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
floppy -fstype=auto,rw,sync,umask=002 :/dev/fd0
Ele monta tudo certinho, o problema e mesmo o timeout, que fica preso e so
consigo desmontar como root.
Dando um ps ax aparece o automonter iniciando assim, automount /vol file
/etc/auto.misc -timeout=3
Fui a procura de um script rc.autofs para o slackware e achei esse daqui que
e para o 8 acho :
=================================================
#!/bin/sh
#
# rc.autofs - Starts the filesystem automounter
# Last modified 12-Dec-2000 by David Cantrell, <[EMAIL PROTECTED]>
#
#
# This function will build a list of automount commands to execute in
# order to activate all the mount points. It is used to figure out
# the difference of automount points in case of a reload
#
function getmounts()
{
# Check for local maps to be loaded
if [ -f /etc/auto.master ]
then
cat /etc/auto.master | sed -e '/^#/d' -e '/^$/d'| (
while read dir map options
do
if [ ! -z "$dir" -a ! -z "$map" \
-a x`echo "$map" | cut -c1` != 'x-' ]
then
map=`echo "/etc/$map" | sed -e 's:^/etc//:/:'`
options=`echo "$options" | sed -e 's/\(^\|[ \t]\)-/\1/g'`
if [ ! -d $dir ]
then
mkdir -p $dir
fi
if [ -x $map ]
then
echo "/usr/sbin/automount $dir program $map $options
$localoptions"
elif [ -f $map ]
then
echo "/usr/sbin/automount $dir file $map $options
$localoptions"
ons"
else
echo "/usr/sbin/automount $dir `basename $map` $options
$localoptions"
fi
fi
done )
fi
# Check for NIS maps to be loaded
if [ -e /usr/bin/ypcat ] &&
[ `ypcat -k auto.master 2>/dev/null | wc -l` -gt 0 ]
then
ypcat -k auto.master | (
while read dir map options
do
if [ ! -z "$dir" -a ! -z "$map" \
-a x`echo "$map" | cut -c1` != 'x-' ]
-a x`echo "$map" | cut -c1` != 'x-' ]
then
map=`echo "$map" | sed -e 's/^auto_/auto./'`
if echo $options | grep -- '-t' >/dev/null 2>&1
then
mountoptions="--timeout $(echo $options | \
sed 's/^.*-t\(imeout\)*[ \t]*\([0-9][0-9]*\).*$/\2/g')"
fi
options=`echo "$options" | sed -e '
s/--*t\(imeout\)*[ \t]*[0-9][0-9]*//g
s/\(^\|[ \t]\)-/\1/g'`
if [ ! -d $dir ]
then
mkdir -p $dir
fi
echo "/usr/sbin/automount $dir yp $map $options $localoptions"
fi
done )
fi
}
getmounts | sh
===============================================
Nao sei se pode ser algum problema com este script ou e melhor usar o
supermount ?
Abracos,,,
--
#-------------------------------------------------------------------#
# Nome : Jos� Carlos Colzani #
# Empresa: Internetwork Solu��es em Linux #
# Cidade: Brusque SC #
# E-mail: [EMAIL PROTECTED] & [EMAIL PROTECTED] #
# SO : Slackware Linux 9.0 #
#-------------------------------------------------------------------#
---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br
Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html