Annotation of src/etc/rc.d/routed, Revision 1.10
1.1 lukem 1: #!/bin/sh
2: #
1.10 ! tron 3: # $NetBSD: routed,v 1.9 2004/10/12 14:51:03 lukem Exp $
1.1 lukem 4: #
5:
6: # PROVIDE: routed
1.10 ! tron 7: # REQUIRE: network
! 8: # BEFORE: NETWORKING
1.1 lukem 9:
1.8 mycroft 10: $_rc_subr_loaded . /etc/rc.subr
1.1 lukem 11:
12: name="routed"
1.5 lukem 13: rcvar=$name
1.3 enami 14: command="/sbin/${name}"
1.1 lukem 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:
1.4 lukem 25: load_rc_config $name
1.9 lukem 26: load_rc_config_var gated gated
1.1 lukem 27: run_rc_command "$1"
CVSweb <webmaster@jp.NetBSD.org>