3 # $NetBSD: amd,v 1.10 2002/04/29 12:08:17 lukem Exp $
8 # REQUIRE: rpcbind ypbind nfsclient cleanvar ldconfig
16 command="/usr/sbin/${name}"
17 start_precmd="amd_precmd"
22 if ! checkyesno nfs_client_enable; then
23 force_depend nfsclient || return 1
26 if ! checkyesno rpcbind_enable && \
27 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
29 force_depend rpcbind || return 1
32 case ${amd_map_program} in
36 rc_flags="${rc_flags} `eval ${amd_map_program}`"
40 case "${amd_flags}" in
42 if [ ! -r /etc/amd.conf ]; then
43 warn 'amd will not load without arguments'
48 rc_flags="-p ${rc_flags} > /var/run/amd.pid 2> /dev/null"