]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/init/rc.d/ypbind
UPDATING: Add note about efifb support and serial output
[FreeBSD/FreeBSD.git] / sbin / init / rc.d / ypbind
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: ypbind
7 # REQUIRE: ypserv
8 # BEFORE:  DAEMON
9 # KEYWORD: shutdown
10
11 . /etc/rc.subr
12
13 name="ypbind"
14 desc="NIS domain binding daemon"
15 rcvar="nis_client_enable"
16
17 load_rc_config $name
18
19 command="/usr/sbin/${name}"
20 command_args="${nis_client_flags}"
21
22 start_precmd="ypbind_precmd"
23
24 ypbind_precmd()
25 {
26         local _domain
27
28         force_depend rpcbind || return 1
29
30         _domain=`domainname`
31         if [ -z "$_domain" ]; then
32                 warn "NIS domainname(1) is not set."
33                 return 1
34         fi
35 }
36
37 run_rc_command "$1"