summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/mountd
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2002-06-20 08:49:44 +0000
committerdougb <dougb@FreeBSD.org>2002-06-20 08:49:44 +0000
commit74d7d809a7048da384515eec5b432f5746286184 (patch)
tree82743d8e22dda9e003cf9214f6b15dbb286fea4b /etc/rc.d/mountd
parentb045fa53c5896beb5e98759a7382ba496f6e75d6 (diff)
downloadFreeBSD-src-74d7d809a7048da384515eec5b432f5746286184.zip
FreeBSD-src-74d7d809a7048da384515eec5b432f5746286184.tar.gz
Anonymize the "portmap" program to get better compatibility with
rpcbind in -current. Submitted by: Alexander Kabaev <ak03@gte.com>
Diffstat (limited to 'etc/rc.d/mountd')
-rwxr-xr-xetc/rc.d/mountd5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd
index 7618aeb..612365f 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
OpenPOWER on IntegriCloud