diff options
author | mtm <mtm@FreeBSD.org> | 2004-01-17 11:25:16 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-01-17 11:25:16 +0000 |
commit | ba6c0037984a16bd8d3a8fa61936186599674d98 (patch) | |
tree | baf961a09f2753309620a1f85106153094a1ae9a /etc/rc.d/mountd | |
parent | bfdb074293449d8ab824e35bd897285b01f5276a (diff) | |
download | FreeBSD-src-ba6c0037984a16bd8d3a8fa61936186599674d98.zip FreeBSD-src-ba6c0037984a16bd8d3a8fa61936186599674d98.tar.gz |
Remove checks for the FreeBSD OS.
Diffstat (limited to 'etc/rc.d/mountd')
-rwxr-xr-x | etc/rc.d/mountd | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd index aa47294..568e6fe 100755 --- a/etc/rc.d/mountd +++ b/etc/rc.d/mountd @@ -19,28 +19,24 @@ extra_commands="reload" mountd_precmd() { - case ${OSTYPE} in - FreeBSD) - if ! checkyesno rpcbind_enable && \ - ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 - then - force_depend rpcbind || return 1 - fi + if ! checkyesno rpcbind_enable && \ + ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 + then + force_depend rpcbind || return 1 + fi - # mountd flags will differ depending on rc.conf settings - # - case ${nfs_server_enable} in - [Yy][Ee][Ss]) - if checkyesno weak_mountd_authentication; then - mountd_flags="${mountd_flags} -n" - fi - ;; - *) - if checkyesno mountd_enable; then - checkyesno weak_mountd_authentication && mountd_flags="-n" - fi - esac + # mountd flags will differ depending on rc.conf settings + # + case ${nfs_server_enable} in + [Yy][Ee][Ss]) + if checkyesno weak_mountd_authentication; then + mountd_flags="${mountd_flags} -n" + fi ;; + *) + if checkyesno mountd_enable; then + checkyesno weak_mountd_authentication && mountd_flags="-n" + fi esac rm -f /var/db/mountdtab ( umask 022 ; > /var/db/mountdtab ) |