diff options
| author | Hiroki Sato <hrs@FreeBSD.org> | 2006-12-08 06:43:35 +0000 |
|---|---|---|
| committer | Hiroki Sato <hrs@FreeBSD.org> | 2006-12-08 06:43:35 +0000 |
| commit | 41a641c2b32b27cc7d72684a73713af51e05dd01 (patch) | |
| tree | 362577019d2fdd57d4fa9f76a1943342bad0815c | |
| parent | ff38c17df19a113f03e2e4c4dcc9ae64c1a4e622 (diff) | |
Notes
| -rw-r--r-- | etc/rc.d/auto_linklocal | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.d/auto_linklocal b/etc/rc.d/auto_linklocal index 7f37290b4d8a..2382c488f6a4 100644 --- a/etc/rc.d/auto_linklocal +++ b/etc/rc.d/auto_linklocal @@ -8,6 +8,7 @@ # BEFORE: sysctl . /etc/rc.subr +. /etc/network.subr name="auto_linklocal" start_cmd="auto_linklocal_start" @@ -17,6 +18,10 @@ auto_linklocal_start() { if ! checkyesno ipv6_enable && ${SYSCTL} net.inet6 > /dev/null 2>&1; then ${SYSCTL_W} net.inet6.ip6.auto_linklocal=0 + laddr=`network6_getladdr lo0` + if [ -z "${laddr}" ]; then + ifconfig lo0 inet6 fe80::1 prefixlen 64 + fi fi } |
