after hours trying to make a /net autofs map work,
seeing it done in 4 lines is... COOOL
If I understand well, the individual exported volume are not mounted
until one use it , but they are listed
so that:
cd /net/host
trigger the script and does showmount -e host
ls
list the exported volume but does not mount them
cd export/disk1
mount this volume ...
am I right?
--
Alain Coetmeur, Informatique-CDC DTA
mailto:[EMAIL PROTECTED]
> -----Message d'origine-----
> De: Jeremy Fitzhardinge [mailto:[EMAIL PROTECTED]]
> key="$1"
> opts="-fstype=nfs,hard,intr,nodev,nosuid"
> SHOWMOUNT="showmount --no-headers -e $key"
> $SHOWMOUNT | sort | sed -e "s|^\([^ ]*\).*|$key\1 $opts $key:\1|"