Cross Reference: ypbind
xref: /src/etc/rc.d/ypbind
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/etc/rc.d/
ypbind revision 1.4
11.1Slukem#!/bin/sh
21.1Slukem#
31.4Slukem# $NetBSD: ypbind,v 1.4 2000/09/19 13:04:39 lukem Exp $
41.1Slukem#
51.1Slukem
61.1Slukem# PROVIDE: ypbind
71.1Slukem# REQUIRE: ypserv
81.1Slukem
91.1Slukem. /etc/rc.subr
101.1Slukem
111.1Slukemname="ypbind"
121.4Slukemrcvar=$name
131.1Slukemcommand="/usr/sbin/${name}"
141.1Slukemstart_precmd="ypbind_precmd"
151.1Slukem
161.1Slukemypbind_precmd()
171.1Slukem{
181.2Slukem	_domain=`domainname`
191.2Slukem	if [ -z "$_domain" ]; then
201.4Slukem		warn "domainname(1) is not set."
211.1Slukem		return 1
221.1Slukem	fi
231.1Slukem}
241.1Slukem
251.3Slukemload_rc_config $name
261.1Slukemrun_rc_command "$1"
27

Indexes created Sun Nov 30 02:09:33 GMT 2025