summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-10-13 12:41:36 +0000
committerume <ume@FreeBSD.org>2006-10-13 12:41:36 +0000
commit73c8098699f6536ec7b99f611c04abf0d8f51889 (patch)
treeac0d821d2dc5d16c6d9a83d762e5e8386ff01d9d /etc
parent57eda29ce5af8b98ebf438b17af46cfa68ed68e4 (diff)
downloadFreeBSD-src-73c8098699f6536ec7b99f611c04abf0d8f51889.zip
FreeBSD-src-73c8098699f6536ec7b99f611c04abf0d8f51889.tar.gz
Revert the default value of net.inet6.ip6.auto_linklocal to 1.
If ipv6_enable is not set to "YES", net.inet6.ip6.auto_linklocal is turned to 0 at boot. Discussed with: re@, gnn@ MFC after: 3 days
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/auto_linklocal10
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/rc.d/auto_linklocal b/etc/rc.d/auto_linklocal
index ea22631..f09e976 100644
--- a/etc/rc.d/auto_linklocal
+++ b/etc/rc.d/auto_linklocal
@@ -10,9 +10,15 @@
. /etc/rc.subr
name="auto_linklocal"
-rcvar=`set_rcvar ipv6`
-start_cmd="${SYSCTL_W} net.inet6.ip6.auto_linklocal=1"
+start_cmd="auto_linklocal_start"
stop_cmd=":"
+auto_linklocal_start()
+{
+ if ! checkyesno ipv6_enable; then
+ ${SYSCTL_W} net.inet6.ip6.auto_linklocal=0
+ fi
+}
+
load_rc_config $name
run_rc_command "$1"
OpenPOWER on IntegriCloud