Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / routed
blob5659ac533da137c34eaf69e59572571e7670bb2c
1 #!/bin/sh
3 # $NetBSD: routed,v 1.9 2004/10/12 14:51:03 lukem Exp $
6 # PROVIDE: routed
7 # REQUIRE: network
8 # BEFORE: NETWORKING
10 $_rc_subr_loaded . /etc/rc.subr
12 name="routed"
13 rcvar=$name
14 command="/sbin/${name}"
15 start_precmd="routed_precmd"
17 routed_precmd()
19 if checkyesno gated && checkyesno routed; then
20 warn "gated and routed both requested to be run: only running gated."
21 return 1
25 load_rc_config $name
26 load_rc_config_var gated gated
27 run_rc_command "$1"