summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/ypbind
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/ypbind')
-rwxr-xr-xetc/rc.d/ypbind10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/rc.d/ypbind b/etc/rc.d/ypbind
index c34101e..0646e4c 100755
--- a/etc/rc.d/ypbind
+++ b/etc/rc.d/ypbind
@@ -27,6 +27,16 @@ esac
ypbind_precmd()
{
+ case ${OSTYPE} in
+ FreeBSD)
+ if ! checkyesno rpcbind_enable && \
+ ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
+ then
+ force_depend rpcbind || return 1
+ fi
+ ;;
+ esac
+
_domain=`domainname`
if [ -z "$_domain" ]; then
warn "domainname(1) is not set."
OpenPOWER on IntegriCloud