|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: netstart,v 1.56 2000/01/02 05:14:52 itojun Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: netstart,v 1.57 2000/01/02 05:21:55 itojun Exp $ |
|
|
|
|
|
|
|
|
# Returns true if $1 contains only alphanumerics |
|
|
# Returns true if $1 contains only alphanumerics |
|
|
isalphanumeric() { |
|
|
isalphanumeric() { |
|
@ -153,11 +153,17 @@ if [ "$ip6kernel" = "YES" -a "x$rtsolif" != "x" ]; then |
|
|
fw=`sysctl -n net.inet6.ip6.forwarding` |
|
|
fw=`sysctl -n net.inet6.ip6.forwarding` |
|
|
ra=`sysctl -n net.inet6.ip6.accept_rtadv` |
|
|
ra=`sysctl -n net.inet6.ip6.accept_rtadv` |
|
|
if [ "x$fw" = "x0" -a "x$ra" = "x1" ]; then |
|
|
if [ "x$fw" = "x0" -a "x$ra" = "x1" ]; then |
|
|
|
|
|
echo "IPv6 autoconf:$rtsolif" |
|
|
rtsol $rtsolif |
|
|
rtsol $rtsolif |
|
|
else |
|
|
else |
|
|
echo "WARNING: inconsistent config - check /etc/sysctl.conf for IPv6 autoconf" |
|
|
echo "WARNING: inconsistent config - check /etc/sysctl.conf for IPv6 autoconf" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
if [ "$ip6kernel" = "YES" ]; then |
|
|
|
|
|
# this is to make sure DAD is completed before going further. |
|
|
|
|
|
sleep `sysctl -n net.inet6.ip6.dad_count` |
|
|
|
|
|
sleep 1 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
for bn in /etc/bridgename.*; do |
|
|
for bn in /etc/bridgename.*; do |
|
|
# Strip off /etc/bridgename. prefix |
|
|
# Strip off /etc/bridgename. prefix |
|
|