Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / rtadvd
blob7a43badb89178f8d65723af030fe1834575833c2
1 #!/bin/sh
3 # $NetBSD: rtadvd,v 1.5 2002/03/22 04:34:00 thorpej Exp $
6 # PROVIDE: rtadvd
7 # REQUIRE: DAEMON
8 # BEFORE: LOGIN
10 $_rc_subr_loaded . /etc/rc.subr
12 name="rtadvd"
13 rcvar=$name
14 command="/usr/sbin/${name}"
15 start_precmd="rtadvd_precmd"
17 rtadvd_precmd()
19 if [ "$ip6mode" != "router" ]; then
20 warn \
21 "${name} cannot be used on IPv6 host, only on an IPv6 router."
22 return 1
26 load_rc_config $name
27 run_rc_command "$1"