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 12 name="routed" 13 rcvar=$name 14 command="/sbin/${name}" 15 start_precmd="routed_precmd" 16 17 routed_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 25 load_rc_config $name 26 run_rc_command "$1" 27