2 # mountnfs.sh Now that TCP/IP is configured, mount the NFS file
3 # systems in /etc/fstab if needed. If possible,
4 # start the portmapper before mounting (this is needed for
7 # Also mounts SBM filesystems now, so the name of
8 # this script is getting increasingly inaccurate.
10 # Version: @(#)mountnfs.sh 2.83 05-Oct-2001 miquels@cistron.nl
16 # Run in a subshell because of I/O redirection.
18 test -f /etc/fstab && (
21 # Read through fstab line by line. If it is NFS, set the flag
22 # for mounting NFS filesystems. If any NFS partition is found and it
23 # not mounted with the nolock option, we start the portmapper.
29 while read device mountpt fstype options
43 if test "$fstype" = nfs
54 if test "$fstype" = smbfs
58 if test "$fstype" = ncpfs
66 if test "$portmap" = yes
68 if test -x /sbin/portmap
70 echo -n "Starting portmapper... "
71 start-stop-daemon --start --quiet --exec /sbin/portmap
76 if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes
78 echo "Mounting remote filesystems..."
79 test "$mount_nfs" = yes && mount -a -t nfs
80 test "$mount_smb" = yes && mount -a -t smbfs
81 test "$mount_ncp" = yes && mount -a -t ncpfs