diff options
author | mtm <mtm@FreeBSD.org> | 2004-01-17 11:31:15 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-01-17 11:31:15 +0000 |
commit | 98608e64478f3e33e7b14daa0653e0f4601305cc (patch) | |
tree | 25524f3805267555c96ed1dca435b695510a475d | |
parent | ba6c0037984a16bd8d3a8fa61936186599674d98 (diff) | |
download | FreeBSD-src-98608e64478f3e33e7b14daa0653e0f4601305cc.zip FreeBSD-src-98608e64478f3e33e7b14daa0653e0f4601305cc.tar.gz |
Use the checkyesno routine instead of a case statement to
check an rc.conf(5) variable. This is in line with rc.d style.
-rwxr-xr-x | etc/rc.d/mountd | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd index 568e6fe..fb01570 100755 --- a/etc/rc.d/mountd +++ b/etc/rc.d/mountd @@ -27,17 +27,15 @@ mountd_precmd() # mountd flags will differ depending on rc.conf settings # - case ${nfs_server_enable} in - [Yy][Ee][Ss]) + if checkyesno nfs_server_enable ; then if checkyesno weak_mountd_authentication; then mountd_flags="${mountd_flags} -n" fi - ;; - *) + else if checkyesno mountd_enable; then checkyesno weak_mountd_authentication && mountd_flags="-n" fi - esac + fi rm -f /var/db/mountdtab ( umask 022 ; > /var/db/mountdtab ) return 0 |