From 5271c188575b39439a3be98b597eff31b526fa79 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Thu, 20 Jun 2002 08:49:44 +0000 Subject: [PATCH] Anonymize the "portmap" program to get better compatibility with rpcbind in -current. Submitted by: Alexander Kabaev --- etc/rc.d/amd | 6 ++++-- etc/rc.d/mountd | 5 ++++- etc/rc.d/rpcbind | 1 - 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/etc/rc.d/amd b/etc/rc.d/amd index 20339c34f232..882f2650fdd3 100755 --- a/etc/rc.d/amd +++ b/etc/rc.d/amd @@ -35,8 +35,10 @@ amd_precmd() if ! checkyesno nfs_client_enable ; then force_depend nfsclient || return 1 fi - if [ -z "`check_process rpcbind`" \ - -a ! `checkyesno portmap_enable` ]; then + + if ! checkyesno portmap_enable && \ + [ -z "`check_process ${portmap_program}`" ] + then force_depend rpcbind || return 1 fi diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd index 7618aebda6e5..612365fba83b 100755 --- a/etc/rc.d/mountd +++ b/etc/rc.d/mountd @@ -33,7 +33,10 @@ mountd_precmd() if ! sysctl vfs.nfsrv >/dev/null 2>&1; then force_depend nfsserver || return 1 fi - if [ -z "`check_process rpcbind`" -a ! `checkyesno portmap_enable` ]; then + + if ! checkyesno portmap_enable && \ + [ -z "`check_process ${portmap_program}`" ] + then force_depend rpcbind || return 1 fi diff --git a/etc/rc.d/rpcbind b/etc/rc.d/rpcbind index 9f6e544844d0..fd923df9ff27 100755 --- a/etc/rc.d/rpcbind +++ b/etc/rc.d/rpcbind @@ -23,7 +23,6 @@ case `${CMD_OSTYPE}` in FreeBSD) pidfile= rcvar="portmap_enable" - command="${portmap_program:-/usr/sbin/${name}}" eval ${name}_flags=\"${portmap_flags}\" ;; NetBSD)