3 # $NetBSD: amd,v 1.10 2002/04/29 12:08:17 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/amd,v 1.9 2002/10/12 10:31:31 schweikh Exp $
5 # $DragonFly: src/etc/rc.d/amd,v 1.3 2004/01/26 17:21:15 rob Exp $
9 # REQUIRE: rpcbind mountall ypbind nfsclient
17 command="/usr/sbin/${name}"
19 start_precmd="amd_precmd"
24 if ! checkyesno nfs_client_enable; then
25 force_depend nfsclient || return 1
28 if ! checkyesno rpcbind_enable && \
29 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
31 force_depend rpcbind || return 1
34 case ${amd_map_program} in
38 rc_flags="${rc_flags} `eval ${amd_map_program}`"
42 case "${amd_flags}" in
44 if [ ! -r /etc/amd.conf ]; then
45 warn 'amd will not load without arguments'