Kelvin Edwards wrote:
> /u auto.u --timeout 60
Kelvin Edwards wrote:
>
> Jeremy Fitzhardinge wrote:
>
> > On 15-Feb-00 H. Peter Anvin wrote:
> > > The claim that it's unimplemented is utterly bogus. It's implemented in
> > > parse_sun.c.
> >
> > Oh, OK, that stuff. I think Kelvin is talking about a command line option to
> > automount, but the automount manpage doesn't promise anything which isn't there.
> >
> > J
>
> Exactly. I would like to be able to define a system dependent variable other
> than those built-in that would be used later when parsing the actual automounter
> maps.
>
> --kelvin
I am not sure, but it sounds, to me, like you are having the same kind of trouble
I had when trying to pass a timeout value.
I had to make the following changes to get that to work on slackware 7.
--- auto.master (sometime)
+++ auto.master (now)
# mountpoint map options
# For details of the format look at autofs(8).
-/u auto.u --timeout 60
+/u auto.u ---timeout 60
The extra "-" was needed because some how an extra "-" was needed for rc.autofs to
pass the correct thing to automount. And then I figured out that for some reason
the order of the options to automount made a difference in it actually using the
timeout value... These changes worked for me YMMV.
--- rc.autofs Wed Jan 5 12:19:07 2000
+++ source_autofs/autofs-3.1.3/samples/rc.autofs Tue Nov 3 16:21:14 1998
@@ -53,11 +50,11 @@
map=`echo "/etc/$map" | sed -e 's:^/etc//:/:'`
options=`echo "$options" | sed -e 's/\(^\|[ \t]\)-/\1/g'`
if [ -x $map ]; then
- echo "automount $options $dir program $map $localoptions"
+ echo "automount $dir program $map $options $localoptions"
elif [ -f $map ]; then
- echo "automount $options $dir file $map $localoptions"
+ echo "automount $dir file $map $options $localoptions"
else
- echo "automount $options $dir `basename $map` $localoptions"
+ echo "automount $dir `basename $map` $options $localoptions"
fi
fi
done
@@ -77,7 +74,7 @@
then
map=`echo "$map" | sed -e 's/^auto_/auto./'`
options=`echo "$options" | sed -e 's/\(^\|[ \t]\)-/\1/g'`
- echo "automount $options $dir yp $map $localoptions"
+ echo "automount $dir yp $map $options $localoptions"
fi
done
)
The opinions expressed here are not sanction by and do not necessarily
represent those of my employer.