Deleted Added
full compact
routed (98184) routed (103019)
1#!/bin/sh
2#
3# $NetBSD: routed,v 1.7 2002/03/22 04:34:00 thorpej Exp $
1#!/bin/sh
2#
3# $NetBSD: routed,v 1.7 2002/03/22 04:34:00 thorpej Exp $
4# $FreeBSD: head/etc/rc.d/routed 98184 2002-06-13 22:14:37Z gordon $
4# $FreeBSD: head/etc/rc.d/routed 103019 2002-09-06 16:18:05Z gordon $
5#
6
7# PROVIDE: routed
8# REQUIRE: DAEMON
9# BEFORE: LOGIN
10# KEYWORD: FreeBSD NetBSD
11
12. /etc/rc.subr
13
14name="routed"
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.
19#
20load_rc_config $name
21
5#
6
7# PROVIDE: routed
8# REQUIRE: DAEMON
9# BEFORE: LOGIN
10# KEYWORD: FreeBSD NetBSD
11
12. /etc/rc.subr
13
14name="routed"
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.
19#
20load_rc_config $name
21
22case `${CMD_OSTYPE}` in
22case ${OSTYPE} in
23FreeBSD)
24 rcvar="router_enable"
25 command="${router:-/sbin/${name}}"
26 eval ${name}_flags=${router_flags}
27 start_precmd=
28 ;;
29NetBSD)
30 rcvar=${name}

--- 14 unchanged lines hidden ---
23FreeBSD)
24 rcvar="router_enable"
25 command="${router:-/sbin/${name}}"
26 eval ${name}_flags=${router_flags}
27 start_precmd=
28 ;;
29NetBSD)
30 rcvar=${name}

--- 14 unchanged lines hidden ---