summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-04-06 15:15:43 +0000
committerume <ume@FreeBSD.org>2002-04-06 15:15:43 +0000
commite97360061bf509e8ef35eb07bb87dc2756e369b8 (patch)
tree67032c419edef9a0f1c998a7b43c064ebadefece /etc
parentce62cbdf20ac6adfd7ff4759dcf383896e9efab0 (diff)
downloadFreeBSD-src-e97360061bf509e8ef35eb07bb87dc2756e369b8.zip
FreeBSD-src-e97360061bf509e8ef35eb07bb87dc2756e369b8.tar.gz
Now, you can specify "" or "NONE" for ipv6_network_interfaces to
prevent the interfaces from being initialized by /etc/rc.network6 wrongly. So, you can explicitly initialize the interfaces by /etc/pccard_ether. With previous rc.network6, if you specify pccardd_flags="-z", net.inet6.ip6.accept_rtadv was wronly set to 0, then RA was not accepted.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/network_ipv618
-rw-r--r--etc/rc.network618
2 files changed, 24 insertions, 12 deletions
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6
index 7d35cdc..406bde6 100644
--- a/etc/rc.d/network_ipv6
+++ b/etc/rc.d/network_ipv6
@@ -127,6 +127,9 @@ network6_pass1() {
#
ipv6_network_interfaces="`ifconfig -l`"
;;
+ [Nn][Oo][Nn][Ee])
+ ipv6_network_interfaces=''
+ ;;
esac
# just to make sure
@@ -151,17 +154,20 @@ network6_pass1() {
;;
*)
# act as endhost - start with manual configuration
+ # Setup of net.inet6.ip6.accept_rtadv is done later by
+ # network6_interface_setup.
sysctl net.inet6.ip6.forwarding=0
- sysctl net.inet6.ip6.accept_rtadv=0
;;
esac
- # setting up interfaces
- network6_interface_setup $ipv6_network_interfaces
+ if [ -n "${ipv6_network_interfaces}" ]; then
+ # setting up interfaces
+ network6_interface_setup $ipv6_network_interfaces
- # wait for DAD's completion (for global addrs)
- sleep `sysctl -n net.inet6.ip6.dad_count`
- sleep 1
+ # wait for DAD's completion (for global addrs)
+ sleep `sysctl -n net.inet6.ip6.dad_count`
+ sleep 1
+ fi
case ${ipv6_gateway_enable} in
[Yy][Ee][Ss])
diff --git a/etc/rc.network6 b/etc/rc.network6
index 7d35cdc..406bde6 100644
--- a/etc/rc.network6
+++ b/etc/rc.network6
@@ -127,6 +127,9 @@ network6_pass1() {
#
ipv6_network_interfaces="`ifconfig -l`"
;;
+ [Nn][Oo][Nn][Ee])
+ ipv6_network_interfaces=''
+ ;;
esac
# just to make sure
@@ -151,17 +154,20 @@ network6_pass1() {
;;
*)
# act as endhost - start with manual configuration
+ # Setup of net.inet6.ip6.accept_rtadv is done later by
+ # network6_interface_setup.
sysctl net.inet6.ip6.forwarding=0
- sysctl net.inet6.ip6.accept_rtadv=0
;;
esac
- # setting up interfaces
- network6_interface_setup $ipv6_network_interfaces
+ if [ -n "${ipv6_network_interfaces}" ]; then
+ # setting up interfaces
+ network6_interface_setup $ipv6_network_interfaces
- # wait for DAD's completion (for global addrs)
- sleep `sysctl -n net.inet6.ip6.dad_count`
- sleep 1
+ # wait for DAD's completion (for global addrs)
+ sleep `sysctl -n net.inet6.ip6.dad_count`
+ sleep 1
+ fi
case ${ipv6_gateway_enable} in
[Yy][Ee][Ss])
OpenPOWER on IntegriCloud