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