Deleted Added
full compact
route6d (100449) route6d (103019)
1#!/bin/sh
2#
3# $NetBSD: route6d,v 1.5 2002/03/22 04:34:00 thorpej Exp $
1#!/bin/sh
2#
3# $NetBSD: route6d,v 1.5 2002/03/22 04:34:00 thorpej Exp $
4# $FreeBSD: head/etc/rc.d/route6d 100449 2002-07-21 19:12:21Z ume $
4# $FreeBSD: head/etc/rc.d/route6d 103019 2002-09-06 16:18:05Z gordon $
5#
6
7# PROVIDE: route6d
8# REQUIRE: DAEMON
9# BEFORE: LOGIN
10# KEYWORD: FreeBSD NetBSD
11
12. /etc/rc.subr
13
14name="route6d"
15
16# XXX - Executable may be in a different location. The $name variable
17# is different from the variable in rc.conf(5) so the
18# subroutines in rc.subr won't catch it. In this case, it
19# is also needed by the eval statement in the FreeBSD conditional.
20#
21load_rc_config $name
22
5#
6
7# PROVIDE: route6d
8# REQUIRE: DAEMON
9# BEFORE: LOGIN
10# KEYWORD: FreeBSD NetBSD
11
12. /etc/rc.subr
13
14name="route6d"
15
16# XXX - Executable may be in a different location. The $name variable
17# is different from the variable in rc.conf(5) so the
18# subroutines in rc.subr won't catch it. In this case, it
19# is also needed by the eval statement in the FreeBSD conditional.
20#
21load_rc_config $name
22
23case `${CMD_OSTYPE}` in
23case ${OSTYPE} in
24FreeBSD)
25 rcvar="ipv6_router_enable"
26 command="${ipv6_router:-/usr/sbin/${name}}"
27 eval ${name}_flags=\"${ipv6_router_flags}\"
28 ;;
29NetBSD)
30 rcvar=$name
31 command="/usr/sbin/${name}"
32 ;;
33esac
34
35run_rc_command "$1"
24FreeBSD)
25 rcvar="ipv6_router_enable"
26 command="${ipv6_router:-/usr/sbin/${name}}"
27 eval ${name}_flags=\"${ipv6_router_flags}\"
28 ;;
29NetBSD)
30 rcvar=$name
31 command="/usr/sbin/${name}"
32 ;;
33esac
34
35run_rc_command "$1"