# automount removable media (floppy, CD-ROM)
# contributed by Massimo Dal Zotto <dz@cs.unitn.it>

# Default options, nfs opts must be specified for individual mounts
# because they are not valid for ufs mounts.
/defaults fs:=${autodir}/${key};type:=nfs

# Local floppy with automatic fs type detection, requires amd-fdmount script
floppy	type:=program;dev:=/dev/fd0;\
          mount:="/usr/sbin/amd-fdmount mount -o user,sync ${dev} ${fs}";\
          unmount:="/bin/umount umount ${dev}" \
	delay=5;type:=program;mount:="(sleep 2; /usr/sbin/amq -u /net/${key})&"

# Local cdrom
cdrom   type:=program;dev:=/dev/cdrom;\
	  mount:="/bin/mount mount -o ro ${dev} ${fs}";\
	  unmount:="/bin/umount umount ${dev}" \
	delay=5;type:=program;mount:="(sleep 2; /usr/sbin/amq -u /net/${key})&"

# Root filesystem from localhost
localhost \
	host==${key};type:=link;fs:=/ \
	host!=${key};type:=nfs;rhost:=${key};rfs:=/ \
	delay=5;type:=program;mount:="(sleep 2; /usr/sbin/amq -u /net/${key})&"

# Root filesystem from remote host
# remote_host \
#	host==${key};type:=link;fs:=/ \
#	host!=${key};type:=nfs;rhost:=${key};rfs:=/ \
#	delay=5;type:=program;mount:="(sleep 2; /usr/sbin/amq -u /net/${key})&"

# Root filesystem from any remote host
# *	host==${key};type:=link;fs:=/ \
#	host!=${key};type:=nfs;rhost:=${key};rfs:=/ \
#	delay=5;type:=program;mount:="(sleep 2; /usr/sbin/amq -u /net/${key})&"
