Sat Nov 19 01:14:58 2016 UTC ()
Undo change to a comment made when I thought another change to the
script was needed ... the unnecessary script change was never committed,
but the comment that described it was...    No functional change.


(kre)
diff -r1.9 -r1.10 src/etc/rc.d/rtadvd

cvs diff -r1.9 -r1.10 src/etc/rc.d/rtadvd (expand / switch to unified diff)

--- src/etc/rc.d/rtadvd 2016/11/18 23:10:05 1.9
+++ src/etc/rc.d/rtadvd 2016/11/19 01:14:58 1.10
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $NetBSD: rtadvd,v 1.9 2016/11/18 23:10:05 kre Exp $ 3# $NetBSD: rtadvd,v 1.10 2016/11/19 01:14:58 kre Exp $
4# 4#
5 5
6# PROVIDE: rtadvd 6# PROVIDE: rtadvd
7# REQUIRE: DAEMON 7# REQUIRE: DAEMON
8# BEFORE: LOGIN 8# BEFORE: LOGIN
9 9
10$_rc_subr_loaded . /etc/rc.subr 10$_rc_subr_loaded . /etc/rc.subr
11 11
12name=rtadvd 12name=rtadvd
13rcvar=$name 13rcvar=$name
14command="/usr/sbin/$name" 14command="/usr/sbin/$name"
15pidfile="/var/run/$name.pid" 15pidfile="/var/run/$name.pid"
16extra_commands=reload 16extra_commands=reload
@@ -46,27 +46,27 @@ rtadvd_prereload() @@ -46,27 +46,27 @@ rtadvd_prereload()
46 esac 46 esac
47 done 47 done
48 48
49 ${cflag} || test -f "${conf}" && { 49 ${cflag} || test -f "${conf}" && {
50 confdir=$(dirname "${conf}") 50 confdir=$(dirname "${conf}")
51 echo "${name}: copying ${conf} to ${chdir}${conf}" 51 echo "${name}: copying ${conf} to ${chdir}${conf}"
52 mkdir -p "${chdir}${confdir}" 52 mkdir -p "${chdir}${confdir}"
53 cp "${conf}" "${chdir}${conf}" || return 1 53 cp "${conf}" "${chdir}${conf}" || return 1
54 } 54 }
55 55
56 # Make sure /var/run exists in the chroot 56 # Make sure /var/run exists in the chroot
57 mkdir -p "${chdir}/var/run" 57 mkdir -p "${chdir}/var/run"
58 58
59 # Provide links to the chrooted dump & pid files 59 # Provide a link to the chrooted dump file
60 ln -snf "${chdir}/var/run/${name}.dump" /var/run 60 ln -snf "${chdir}/var/run/${name}.dump" /var/run
61 61
62 # Note: actual chroot is done by rtadvd itself 62 # Note: actual chroot is done by rtadvd itself
63 63
64 return 0 64 return 0
65} 65}
66 66
67rtadvd_prestart() 67rtadvd_prestart()
68{ 68{
69 if [ "$ip6mode" != router ]; then 69 if [ "$ip6mode" != router ]; then
70 warn \ 70 warn \
71 "${name} cannot be used on IPv6 host, only on an IPv6 router." 71 "${name} cannot be used on IPv6 host, only on an IPv6 router."
72 return 1 72 return 1