1#!/bin/sh 2# 3# $NetBSD: routed,v 1.7 2002/03/22 04:34:00 thorpej Exp $ 4# $FreeBSD: src/etc/rc.d/routed,v 1.6 2003/06/29 05:15:57 mtm Exp $ 5# $DragonFly: src/etc/rc.d/routed,v 1.6 2007/06/17 05:48:31 swildner Exp $ 6# 7 8# PROVIDE: routed 9# REQUIRE: netif routing 10 11. /etc/rc.subr 12 13name="routed" 14 15# XXX - Executable may be in a different location. The $name variable 16# is different from the variable in rc.conf(5) so the 17# subroutines in rc.subr won't catch it. 18# 19load_rc_config $name 20 21rcvar="router_enable" 22command="${router_program:-/sbin/${name}}" 23eval ${name}_flags=${router_flags} 24 25run_rc_command "$1" 26