Author: hrs
Date: Sat Jun 11 21:41:44 2011
New Revision: 222997
URL: http://svn.freebsd.org/changeset/base/222997

Log:
  - Remove $ipv6_gateway_enable check.
  - Use list_net_interfaces() instead of "ifconfig -l".

Modified:
  head/etc/rc.d/rtadvd

Modified: head/etc/rc.d/rtadvd
==============================================================================
--- head/etc/rc.d/rtadvd        Sat Jun 11 21:40:37 2011        (r222996)
+++ head/etc/rc.d/rtadvd        Sat Jun 11 21:41:44 2011        (r222997)
@@ -18,12 +18,6 @@ start_precmd="rtadvd_precmd"
 
 rtadvd_precmd()
 {
-       if ! checkyesno ipv6_gateway_enable ; then
-               warn \
-                 "${name} cannot be used on IPv6 host, only on an IPv6 router."
-               return 1
-       fi
-
        # This should be enabled with a great care.
        # You may want to fine-tune /etc/rtadvd.conf.
        #
@@ -42,7 +36,7 @@ rtadvd_precmd()
        #
        case ${rtadvd_interfaces} in
        [Aa][Uu][Tt][Oo]|'')
-               for i in `ifconfig -l` ; do
+               for i in `list_net_interfaces`; do
                        case $i in
                        lo0)    continue ;;
                        esac
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to