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

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

Revision 1.9.10.1, Sat Apr 28 18:02:58 2007 UTC (12 years, 7 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.9: +3 -3 lines

Pull up following revision(s) (requested by tron in ticket #588):
	etc/rc.d/routed: revision 1.10
	etc/rc.d/route6d: revision 1.7
The "routed" and "route6d" scripts must be run early during system startup
because they are part of the network initialization. Use similar
dependences as the "rtsold" script.
This should fix PR misc/36171.

#!/bin/sh
#
# $NetBSD: routed,v 1.9.10.1 2007/04/28 18:02:58 bouyer Exp $
#

# PROVIDE: routed
# REQUIRE: network
# BEFORE:  NETWORKING

$_rc_subr_loaded . /etc/rc.subr

name="routed"
rcvar=$name
command="/sbin/${name}"
start_precmd="routed_precmd"

routed_precmd()
{
	if checkyesno gated && checkyesno routed; then
		warn "gated and routed both requested to be run: only running gated."
		return 1
	fi
}

load_rc_config $name
load_rc_config_var gated gated
run_rc_command "$1"