routed revision 1.8
1#!/bin/sh 2# 3# $NetBSD: routed,v 1.8 2004/08/13 18:08:03 mycroft Exp $ 4# 5 6# PROVIDE: routed 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9 10$_rc_subr_loaded . /etc/rc.subr 11 12name="routed" 13rcvar=$name 14command="/sbin/${name}" 15start_precmd="routed_precmd" 16 17routed_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 25load_rc_config $name 26run_rc_command "$1" 27