freebsd-dev/etc/rc.d/auto_linklocal
Hajimu UMEMOTO f5c04409eb 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
2006-10-13 12:41:36 +00:00

25 lines
326 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: auto_linklocal
# REQUIRE: root
# BEFORE: sysctl
. /etc/rc.subr
name="auto_linklocal"
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"