diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/network.subr | 4 | ||||
-rwxr-xr-x | etc/rc.d/Makefile | 2 | ||||
-rw-r--r-- | etc/rc.d/auto_linklocal | 18 |
3 files changed, 19 insertions, 5 deletions
diff --git a/etc/network.subr b/etc/network.subr index ef344ae..de2aaf4 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -41,10 +41,6 @@ ifconfig_up() { _cfg=1 - if checkyesno ipv6_enable; then - ${SYSCTL_W} net.inet6.ip6.auto_linklocal=1 - fi - ifconfig_args=`ifconfig_getargs $1` if [ -n "${ifconfig_args}" ]; then ifconfig $1 up diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index 11f89ab..779844c 100755 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -5,7 +5,7 @@ FILES= DAEMON LOGIN NETWORKING SERVERS \ abi accounting addswap adjkerntz amd \ - apm apmd archdep atm1 atm2 atm3 auditd \ + apm apmd archdep atm1 atm2 atm3 auditd auto_linklocal \ bgfsck bluetooth bootparams bridge bsnmpd bthidd \ ccd cleanvar cleartmp cron \ devd devfs dhclient \ diff --git a/etc/rc.d/auto_linklocal b/etc/rc.d/auto_linklocal new file mode 100644 index 0000000..ea22631 --- /dev/null +++ b/etc/rc.d/auto_linklocal @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: auto_linklocal +# REQUIRE: root +# BEFORE: sysctl + +. /etc/rc.subr + +name="auto_linklocal" +rcvar=`set_rcvar ipv6` +start_cmd="${SYSCTL_W} net.inet6.ip6.auto_linklocal=1" +stop_cmd=":" + +load_rc_config $name +run_rc_command "$1" |