[BACK]Return to route6d CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

File: [cvs.NetBSD.org] / src / etc / rc.d / route6d (download)

Revision 1.6, Fri Aug 13 18:08:03 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-4-base, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: netbsd-4, netbsd-3-1, netbsd-3-0, netbsd-3
Changes since 1.5: +2 -2 lines

Add an _rc_subr_loaded variable, set to ":" by rc.subr.  Scripts can use this
for a speedup by doing:
$_rc_subr_loaded . /etc/rc.subr

#!/bin/sh
#
# $NetBSD: route6d,v 1.6 2004/08/13 18:08:03 mycroft Exp $
#

# PROVIDE: route6d
# REQUIRE: DAEMON
# BEFORE:  LOGIN

$_rc_subr_loaded . /etc/rc.subr

name="route6d"
rcvar=$name
command="/usr/sbin/${name}"

load_rc_config $name
run_rc_command "$1"