19c600e7dSMatthew Dillon#!/bin/sh 29c600e7dSMatthew Dillon# 39c600e7dSMatthew Dillon# $NetBSD: route6d,v 1.5 2002/03/22 04:34:00 thorpej Exp $ 49c600e7dSMatthew Dillon# $FreeBSD: src/etc/rc.d/route6d,v 1.5 2003/01/25 23:14:08 mtm Exp $ 59c600e7dSMatthew Dillon# 69c600e7dSMatthew Dillon 79c600e7dSMatthew Dillon# PROVIDE: route6d 89c600e7dSMatthew Dillon# REQUIRE: network_ipv6 9ce083385SAaron LI# BEFORE: NETWORKING 109c600e7dSMatthew Dillon 119c600e7dSMatthew Dillon. /etc/rc.subr 129c600e7dSMatthew Dillon 139c600e7dSMatthew Dillonname="route6d" 149c600e7dSMatthew Dillon 159c600e7dSMatthew Dillon# XXX - Executable may be in a different location. The $name variable 169c600e7dSMatthew Dillon# is different from the variable in rc.conf(5) so the 179c600e7dSMatthew Dillon# subroutines in rc.subr won't catch it. In this case, it 189c600e7dSMatthew Dillon# is also needed by the eval statement in the FreeBSD conditional. 199c600e7dSMatthew Dillon# 209c600e7dSMatthew Dillonload_rc_config $name 21e54c8dc8SAaron LI 229c600e7dSMatthew Dillonrcvar="ipv6_router_enable" 23221b91ffSVictor Balada Diazcommand="${ipv6_router_program:-/usr/sbin/${name}}" 24*7b6e6c51SAaron LIeval ${name}_flags=\$ipv6_router_flags 259c600e7dSMatthew Dillon 269c600e7dSMatthew Dillonrun_rc_command "$1" 27