summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/mountcritremote
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2004-01-17 10:59:43 +0000
committermtm <mtm@FreeBSD.org>2004-01-17 10:59:43 +0000
commit5da6236d0167eab4e233aaf815198eb7d1fe5898 (patch)
tree6439610462f4b5b56816a33d4ba3c60ab1fe1868 /etc/rc.d/mountcritremote
parent7948e91c15e85d387bf8070d18fd9257a7d982be (diff)
downloadFreeBSD-src-5da6236d0167eab4e233aaf815198eb7d1fe5898.zip
FreeBSD-src-5da6236d0167eab4e233aaf815198eb7d1fe5898.tar.gz
Luke Mewburn has indicated that they (NetBSD) are not interested
in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than necessary). The NetBSD ident string will be left intact, both for history and also incase we wish to pull in future versions.
Diffstat (limited to 'etc/rc.d/mountcritremote')
-rwxr-xr-xetc/rc.d/mountcritremote79
1 files changed, 30 insertions, 49 deletions
diff --git a/etc/rc.d/mountcritremote b/etc/rc.d/mountcritremote
index 2a8d004..3467d0c 100755
--- a/etc/rc.d/mountcritremote
+++ b/etc/rc.d/mountcritremote
@@ -12,16 +12,8 @@
name="mountcritremote"
stop_cmd=":"
-
-case ${OSTYPE} in
- FreeBSD)
- start_cmd="mountcritremote_start"
- start_precmd="mountcritremote_precmd"
- ;;
-NetBSD)
- start_cmd="mountcritremote_start"
- ;;
-esac
+start_cmd="mountcritremote_start"
+start_precmd="mountcritremote_precmd"
# Mount NFS filesystems if present in /etc/fstab
#
@@ -47,50 +39,39 @@ mountcritremote_precmd()
mountcritremote_start()
{
- case ${OSTYPE} in
- FreeBSD)
- # Mount nfs filesystems.
- #
- echo -n 'Mounting NFS file systems:'
- mount -a -t nfs
- echo '.'
+ # Mount nfs filesystems.
+ #
+ echo -n 'Mounting NFS file systems:'
+ mount -a -t nfs
+ echo '.'
- # Mount other network filesystems if present in /etc/fstab.
- case ${extra_netfs_types} in
- [Nn][Oo])
- ;;
- *)
- netfs_types="${netfs_types} ${extra_netfs_types}"
- ;;
- esac
+ # Mount other network filesystems if present in /etc/fstab.
+ case ${extra_netfs_types} in
+ [Nn][Oo])
+ ;;
+ *)
+ netfs_types="${netfs_types} ${extra_netfs_types}"
+ ;;
+ esac
- for i in ${netfs_types}; do
- fstype=${i%:*}
- fsdecr=${i#*:}
+ for i in ${netfs_types}; do
+ fstype=${i%:*}
+ fsdecr=${i#*:}
- [ "${fstype}" = "nfs" ] && continue
+ [ "${fstype}" = "nfs" ] && continue
- case "`mount -d -a -t ${fstype}`" in
- *mount_${fstype}*)
- echo -n "Mounting ${fsdecr} file systems:"
- mount -a -t ${fstype}
- echo '.'
- ;;
- esac
- done
+ case "`mount -d -a -t ${fstype}`" in
+ *mount_${fstype}*)
+ echo -n "Mounting ${fsdecr} file systems:"
+ mount -a -t ${fstype}
+ echo '.'
+ ;;
+ esac
+ done
- # Cleanup /var again just in case it's a network mount.
- /etc/rc.d/cleanvar reload
- rm -f /var/run/clean_var /var/spool/lock/clean_var
- ;;
- NetBSD)
- # Mount critical filesystems that may be `remote'.
- # (as specified in $critical_filesystems_remote)
- # This usually includes /usr.
- #
- mount_critical_filesystems remote
- ;;
- esac
+ # Cleanup /var again just in case it's a network mount.
+ /etc/rc.d/cleanvar reload
+ rm -f /var/run/clean_var /var/spool/lock/clean_var
}
load_rc_config $name
OpenPOWER on IntegriCloud