svn commit: r242074 - head/etc/rc.d
Brian Somers
brian at FreeBSD.org
Thu Oct 25 08:37:09 UTC 2012
Author: brian
Date: Thu Oct 25 08:37:08 2012
New Revision: 242074
URL: http://svn.freebsd.org/changeset/base/242074
Log:
Enable "accept_rtadvd" on interfaces running rtadvd.
Without this, rtadvd runs but never advertises a default (IPv6) route.
MFC after: 1 week
Modified:
head/etc/rc.d/rtadvd
Modified: head/etc/rc.d/rtadvd
==============================================================================
--- head/etc/rc.d/rtadvd Thu Oct 25 05:22:25 2012 (r242073)
+++ head/etc/rc.d/rtadvd Thu Oct 25 08:37:08 2012 (r242074)
@@ -36,17 +36,24 @@ rtadvd_precmd()
#
case ${rtadvd_interfaces} in
[Aa][Uu][Tt][Oo]|'')
+ command_args=
for i in `list_net_interfaces`; do
case $i in
lo0) continue ;;
esac
if ipv6if $i; then
- rtadvd_interfaces="${rtadvd_interfaces} ${i}"
+ command_args="${command_args} ${i}"
fi
done
;;
+ *)
+ command_args="${rtadvd_interfaces}"
+ ;;
esac
- command_args="${rtadvd_interfaces}"
+
+ for iface in ${command_args}; do
+ ifconfig ${iface} inet6 -accept_rtadv
+ done
# Enable Router Renumbering, unicast case
# (use correct src/dst addr)
More information about the svn-src-head
mailing list