summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2006-10-22 17:21:03 +0000
committerhrs <hrs@FreeBSD.org>2006-10-22 17:21:03 +0000
commit1b1b112c84e75c6328e102164eb22bec691e1947 (patch)
tree7741fedc4a1b987dce7006a8a41ccd10a85359a6 /etc/rc.d
parent48a3918d59d542f807c6f4a78a3fbc9a62a16fbc (diff)
downloadFreeBSD-src-1b1b112c84e75c6328e102164eb22bec691e1947.zip
FreeBSD-src-1b1b112c84e75c6328e102164eb22bec691e1947.tar.gz
Suppress a spurious warning message when a kernel without INET6 is
used. Spotted by: ru Reviewed by: ume MFC after: 3 days
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/auto_linklocal2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/auto_linklocal b/etc/rc.d/auto_linklocal
index f09e976..7f37290 100644
--- a/etc/rc.d/auto_linklocal
+++ b/etc/rc.d/auto_linklocal
@@ -15,7 +15,7 @@ stop_cmd=":"
auto_linklocal_start()
{
- if ! checkyesno ipv6_enable; then
+ if ! checkyesno ipv6_enable && ${SYSCTL} net.inet6 > /dev/null 2>&1; then
${SYSCTL_W} net.inet6.ip6.auto_linklocal=0
fi
}
OpenPOWER on IntegriCloud