--- rc.autofs.in 2000-11-04 10:05:18.000000000 +0300 +++ rc.autofs 2002-07-22 16:37:13.000000000 +0400 @@ -27,8 +27,8 @@ # # Location of the automount daemon and the init directory # -DAEMON=@@sbindir@@/automount -initdir=@@initdir@@ +DAEMON=/usr/sbin/automount +initdir= # # Determine which kind of configuration we're using @@ -38,14 +38,16 @@ system=debian elif [ -f /etc/redhat-release ]; then system=redhat +elif [ -f /etc/slackware-version ]; then + system=slackware else echo "$0: Unknown system, please port and contact autofs@linux.kernel.org" 1>&2 exit 1 fi -if [ $system = redhat ]; then - . $initdir/functions -fi +#if [ $system = redhat ]; then +# . $initdir/functions +#fi test -e $DAEMON || exit 0 thisscript="$0" @@ -84,11 +86,11 @@ map=`echo "/etc/$map" | sed -e 's:^/etc//:/:'` options=`echo "$options" | sed -e 's/\(^\|[ \t]\)-/\1/g'` if [ -x $map ]; then - echo "$DAEMON $dir program $map $options $localoptions" + echo "$DAEMON -t 180 $dir program $map $options $localoptions" elif [ -f $map ]; then - echo "$DAEMON $dir file $map $options $localoptions" + echo "$DAEMON -t 180 $dir file $map $options $localoptions" else - echo "$DAEMON $dir `basename $map` $options $localoptions" + echo "$DAEMON -t 180 $dir `basename $map` $options $localoptions" fi fi done @@ -210,8 +212,9 @@ do echo -n " $mnt" pidfile=/var/run/autofs`echo $mnt | sed 's/\//./'`.pid - start-stop-daemon --start --pidfile $pidfile --quiet \ - --exec $DAEMON -- $mnt $rest +# start-stop-daemon --start --pidfile $pidfile --quiet \ +# --exec $DAEMON -- $mnt $rest + $DAEMON $mnt $rest & # # Automount needs a '--pidfile' or '-p' option. # For now we look for the pid ourself. @@ -260,6 +263,8 @@ debian "$@" elif [ $system = redhat ]; then redhat "$@" +elif [ $system = slackware ]; then + redhat "$@" fi exit 0