Deleted Added
full compact
rtadvd (98184) rtadvd (103019)
1#!/bin/sh
2#
3# $NetBSD: rtadvd,v 1.5 2002/03/22 04:34:00 thorpej Exp $
1#!/bin/sh
2#
3# $NetBSD: rtadvd,v 1.5 2002/03/22 04:34:00 thorpej Exp $
4# $FreeBSD: head/etc/rc.d/rtadvd 98184 2002-06-13 22:14:37Z gordon $
4# $FreeBSD: head/etc/rc.d/rtadvd 103019 2002-09-06 16:18:05Z gordon $
5#
6
7# PROVIDE: rtadvd
8# REQUIRE: DAEMON
9# BEFORE: LOGIN
10# KEYWORD: FreeBSD NetBSD
11
12. /etc/rc.subr
13
14name="rtadvd"
15rcvar=`set_rcvar`
16command="/usr/sbin/${name}"
17start_precmd="rtadvd_precmd"
18
5#
6
7# PROVIDE: rtadvd
8# REQUIRE: DAEMON
9# BEFORE: LOGIN
10# KEYWORD: FreeBSD NetBSD
11
12. /etc/rc.subr
13
14name="rtadvd"
15rcvar=`set_rcvar`
16command="/usr/sbin/${name}"
17start_precmd="rtadvd_precmd"
18
19case `${CMD_OSTYPE}` in
19case ${OSTYPE} in
20FreeBSD)
21 IS_GATEWAY="checkyesno ipv6_gateway_enable"
22 ;;
23NetBSD)
24 IS_GATEWAY="eval [ \"$ip6mode\" = \"router\" ]"
25 ;;
26esac
27

--- 13 unchanged lines hidden (view full) ---

41 # security policy by -R option.
42 #
43 # See `man 3 ipsec_set_policy` for IPsec policy specification
44 # details.
45 # (CAUTION: This enables your routers prefix renumbering
46 # from another machine, so if you enable this, do it with
47 # enough care.)
48 #
20FreeBSD)
21 IS_GATEWAY="checkyesno ipv6_gateway_enable"
22 ;;
23NetBSD)
24 IS_GATEWAY="eval [ \"$ip6mode\" = \"router\" ]"
25 ;;
26esac
27

--- 13 unchanged lines hidden (view full) ---

41 # security policy by -R option.
42 #
43 # See `man 3 ipsec_set_policy` for IPsec policy specification
44 # details.
45 # (CAUTION: This enables your routers prefix renumbering
46 # from another machine, so if you enable this, do it with
47 # enough care.)
48 #
49 case `${CMD_OSTYPE}` in
49 case ${OSTYPE} in
50 FreeBSD)
51 # If specific interfaces haven't been specified,
52 # get a list of interfaces and enable it on them
53 #
54 case ${rtadvd_interfaces} in
55 '')
56 for i in `ifconfig -l` ; do
57 case $i in

--- 25 unchanged lines hidden ---
50 FreeBSD)
51 # If specific interfaces haven't been specified,
52 # get a list of interfaces and enable it on them
53 #
54 case ${rtadvd_interfaces} in
55 '')
56 for i in `ifconfig -l` ; do
57 case $i in

--- 25 unchanged lines hidden ---