diff options
-rw-r--r-- | etc/defaults/rc.conf | 2 | ||||
-rw-r--r-- | etc/rc.d/network_ipv6 | 21 | ||||
-rw-r--r-- | etc/rc.network6 | 21 |
3 files changed, 24 insertions, 20 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index cfb3de8..c517883 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -265,6 +265,8 @@ ipv6_router="/usr/sbin/route6d" # Name of IPv6 routing daemon. ipv6_router_flags="" # Flags to IPv6 routing daemon. #ipv6_router_flags="-l" # Example for route6d with only IPv6 site local # addrs. +#ipv6_router_flags="-q" # If you want to run a routing daemon on an end + # node, you should stop advertisement. #ipv6_network_interfaces="ed0 ep0" # Examples for router # or static configuration for end node. # Choose correct prefix value. diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6 index 406bde6..3e9a7c3 100644 --- a/etc/rc.d/network_ipv6 +++ b/etc/rc.d/network_ipv6 @@ -201,18 +201,19 @@ network6_pass1() { # setup faith network6_faith_setup - case ${ipv6_gateway_enable} in + # ipv6_router + case ${ipv6_router_enable} in [Yy][Ee][Ss]) - # ipv6_router - case ${ipv6_router_enable} in - [Yy][Ee][Ss]) - if [ -x ${ipv6_router} ]; then - echo -n " ${ipv6_router}" - ${ipv6_router} ${ipv6_router_flags} - fi - ;; - esac + if [ -x ${ipv6_router} ]; then + echo -n " ${ipv6_router}" + ${ipv6_router} ${ipv6_router_flags} + fi + ;; + esac + + case ${ipv6_gateway_enable} in + [Yy][Ee][Ss]) # rtadvd # This should enabled with a great care. # You may want to fine-tune /etc/rtadvd.conf. diff --git a/etc/rc.network6 b/etc/rc.network6 index 406bde6..3e9a7c3 100644 --- a/etc/rc.network6 +++ b/etc/rc.network6 @@ -201,18 +201,19 @@ network6_pass1() { # setup faith network6_faith_setup - case ${ipv6_gateway_enable} in + # ipv6_router + case ${ipv6_router_enable} in [Yy][Ee][Ss]) - # ipv6_router - case ${ipv6_router_enable} in - [Yy][Ee][Ss]) - if [ -x ${ipv6_router} ]; then - echo -n " ${ipv6_router}" - ${ipv6_router} ${ipv6_router_flags} - fi - ;; - esac + if [ -x ${ipv6_router} ]; then + echo -n " ${ipv6_router}" + ${ipv6_router} ${ipv6_router_flags} + fi + ;; + esac + + case ${ipv6_gateway_enable} in + [Yy][Ee][Ss]) # rtadvd # This should enabled with a great care. # You may want to fine-tune /etc/rtadvd.conf. |