On 13-Jan-00 Coetmeur, Alain wrote:
>
> you talk about
> samples/auto.net maps,
> I there seems to exist no link to it...
> It would be very interesting to see such a sample.
Sorry, I should have been more clear. It's a path into the automount daemon
source, once you've applied the patch. The script is pretty simple:
---
#!/bin/sh
# Look at what a host is exporting to determine what we can mount.
# This is wildly simplistic - no attempt is made to see whether we can mount
# each filesystem, or whether its RO or RW. For the future...
key="$1"
opts="-fstype=nfs,hard,intr,nodev,nosuid"
# Showmount comes in a number of names and varieties. "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it. "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail +2"
# Newer distributions get this right
SHOWMOUNT="showmount --no-headers -e $key"
$SHOWMOUNT | sort | sed -e "s|^\([^ ]*\).*|$key\1 $opts $key:\1|"
---
> is it planned to integrate it in standard autofs ?
That's the plan.
J