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