1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/route6d 174438 2007-12-08 07:20:23Z dougb $
| 3# $FreeBSD: head/etc/rc.d/route6d 197144 2009-09-12 22:19:48Z hrs $
|
4# 5 6# PROVIDE: route6d
| 4# 5 6# PROVIDE: route6d
|
7# REQUIRE: network_ipv6
| 7# REQUIRE: netif routing
|
8# KEYWORD: nojail 9 10. /etc/rc.subr 11 12name="route6d"
| 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 12name="route6d"
|
| 13rcvar=`set_rcvar`
|
13
| 14
|
14# XXX - Executable may be in a different location. The $name variable 15# is different from the variable in rc.conf(5) so the 16# subroutines in rc.subr won't catch it. In this case, it 17# is also needed by the eval statement in the FreeBSD conditional. 18# 19load_rc_config $name
| 15set_rcvar_obsolete ipv6_router_enable route6d_enable 16set_rcvar_obsolete ipv6_router route6d_program 17set_rcvar_obsolete ipv6_router_flags route6d_flags
|
20
| 18
|
21rcvar="ipv6_router_enable" 22command="${ipv6_router:-/usr/sbin/${name}}" 23eval ${name}_flags=\"${ipv6_router_flags}\" 24
| 19load_rc_config $name
|
25run_rc_command "$1"
| 20run_rc_command "$1"
|