f5c04409eb
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
25 lines
326 B
Bash
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"
|