Add gcc40 build hooks. Gcc40 isn't built per default, you will have to
[dragonfly.git] / etc / rc.d / rtsold
1 #!/bin/sh
2 #
3 # $NetBSD: rtsold,v 1.5 2002/03/22 04:34:00 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/rtsold,v 1.2 2002/06/13 22:14:36 gordon Exp $
5 # $DragonFly: src/etc/rc.d/rtsold,v 1.3 2005/04/22 10:05:41 joerg Exp $
6 #
7
8 # PROVIDE: rtsold
9 # REQUIRE: DAEMON
10 # BEFORE:  LOGIN
11 # KEYWORD: DragonFly
12
13 . /etc/rc.subr
14
15 name="rtsold"
16 rcvar=`set_rcvar`
17 command="/usr/sbin/${name}"
18 start_precmd="rtsold_precmd"
19
20 rtsold_precmd()
21 {
22         if [ "$ip6mode" != "autohost" ]; then
23                 warn "\$ip6mode must be set to 'autohost' to use ${name}."
24                 return 1
25         fi
26 }
27
28 load_rc_config $name
29 run_rc_command "$1"