xref: /netbsd/etc/rc.d/routed (revision bf9ec67e)
1#!/bin/sh
2#
3# $NetBSD: routed,v 1.7 2002/03/22 04:34:00 thorpej Exp $
4#
5
6# PROVIDE: routed
7# REQUIRE: DAEMON
8# BEFORE:  LOGIN
9
10. /etc/rc.subr
11
12name="routed"
13rcvar=$name
14command="/sbin/${name}"
15start_precmd="routed_precmd"
16
17routed_precmd()
18{
19	if checkyesno gated && checkyesno routed; then
20		warn "gated and routed both requested to be run: only running gated."
21		return 1
22	fi
23}
24
25load_rc_config $name
26run_rc_command "$1"
27