mountd (103019) | mountd (104980) |
---|---|
1#!/bin/sh 2# 3# $NetBSD: mountd,v 1.11 2002/01/31 01:26:06 lukem Exp $ | 1#!/bin/sh 2# 3# $NetBSD: mountd,v 1.11 2002/01/31 01:26:06 lukem Exp $ |
4# $FreeBSD: head/etc/rc.d/mountd 103019 2002-09-06 16:18:05Z gordon $ | 4# $FreeBSD: head/etc/rc.d/mountd 104980 2002-10-12 10:31:31Z schweikh $ |
5# 6 7# PROVIDE: mountd 8# REQUIRE: NETWORKING mountall beforemountlkm nfsserver rpcbind quota 9# KEYWORD: FreeBSD NetBSD 10 11. /etc/rc.subr 12 --- 5 unchanged lines hidden (view full) --- 18extra_commands="reload" 19 20mountd_precmd() 21{ 22 case ${OSTYPE} in 23 FreeBSD) 24 if ! checkyesno rpcbind_enable && \ 25 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 | 5# 6 7# PROVIDE: mountd 8# REQUIRE: NETWORKING mountall beforemountlkm nfsserver rpcbind quota 9# KEYWORD: FreeBSD NetBSD 10 11. /etc/rc.subr 12 --- 5 unchanged lines hidden (view full) --- 18extra_commands="reload" 19 20mountd_precmd() 21{ 22 case ${OSTYPE} in 23 FreeBSD) 24 if ! checkyesno rpcbind_enable && \ 25 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 |
26 then | 26 then |
27 force_depend rpcbind || return 1 28 fi 29 30 # mountd flags will differ depending on rc.conf settings 31 # 32 case ${nfs_server_enable} in 33 [Yy][Ee][Ss]) | 27 force_depend rpcbind || return 1 28 fi 29 30 # mountd flags will differ depending on rc.conf settings 31 # 32 case ${nfs_server_enable} in 33 [Yy][Ee][Ss]) |
34 if checkyesno weak_mountd_authentication ; then | 34 if checkyesno weak_mountd_authentication; then |
35 mountd_flags="${mountd_flags} -n" 36 fi 37 ;; 38 *) | 35 mountd_flags="${mountd_flags} -n" 36 fi 37 ;; 38 *) |
39 if checkyesno mountd_enable ; then | 39 if checkyesno mountd_enable; then |
40 checkyesno weak_mountd_authentication && mountd_flags="-n" 41 fi 42 esac 43 ;; 44 esac 45 rm -f /var/db/mountdtab 46 ( umask 022 ; > /var/db/mountdtab ) 47 return 0 48} 49 50load_rc_config $name 51run_rc_command "$1" | 40 checkyesno weak_mountd_authentication && mountd_flags="-n" 41 fi 42 esac 43 ;; 44 esac 45 rm -f /var/db/mountdtab 46 ( umask 022 ; > /var/db/mountdtab ) 47 return 0 48} 49 50load_rc_config $name 51run_rc_command "$1" |