add ldpd rc script

This commit is contained in:
kefren 2011-01-13 10:55:19 +00:00
parent 199ec8a11a
commit e0adf296c4
4 changed files with 23 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.217 2010/11/07 17:48:41 jmmv Exp $
# $NetBSD: mi,v 1.218 2011/01/13 10:55:19 kefren Exp $
#
# Note: end-user configuration files that are moved to another location
# should not be marked "obsolete"; they should just be removed from
@ -213,6 +213,7 @@
./etc/rc.d/kdc etc-krb5-rc
./etc/rc.d/kerberos etc-obsolete obsolete
./etc/rc.d/ldconfig etc-sys-rc
./etc/rc.d/ldpd etc-router-rc
./etc/rc.d/lkm1 etc-obsolete obsolete
./etc/rc.d/lkm2 etc-obsolete obsolete
./etc/rc.d/lkm3 etc-obsolete obsolete

View File

@ -1,4 +1,4 @@
# $NetBSD: rc.conf,v 1.109 2009/10/01 16:36:20 tsarna Exp $
# $NetBSD: rc.conf,v 1.110 2011/01/13 10:55:20 kefren Exp $
#
# /etc/defaults/rc.conf --
# default configuration of /etc/rc.conf
@ -253,6 +253,7 @@ gated=NO
mrouted=NO mrouted_flags=""
route6d=NO route6d_flags=""
rtsold=NO rtsold_flags="-a" # for ip6mode=autohost only
ldpd=NO
# Daemons used to boot other hosts over a network.
#

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.80 2009/09/29 23:56:27 tsarna Exp $
# $NetBSD: Makefile,v 1.81 2011/01/13 10:55:20 kefren Exp $
.include <bsd.own.mk>
@ -25,7 +25,7 @@ CONFIGFILES=\
identd ifwatchd inetd ipfilter ipfs ipmon ipnat ipsec \
irdaattach iscsi_target isdnd \
kdc \
ldconfig local lpd lvm \
ldconfig ldpd local lpd lvm \
mdnsd mixerctl mopd motd mountall mountcritlocal \
mountcritremote mountd moused mrouted \
named ndbootd network newsyslog nfsd nfslocking ntpd ntpdate \

17
etc/rc.d/ldpd Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
#
# $NetBSD: ldpd,v 1.1 2011/01/13 10:55:20 kefren Exp $
#
# PROVIDE: ldpd
# REQUIRE: network
# BEFORE: NETWORKING
$_rc_subr_loaded . /etc/rc.subr
name="ldpd"
rcvar=$name
command="/usr/sbin/${name}"
load_rc_config $name
run_rc_command "$1"