Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 166095
Collapse All | Expand All

(-)radvd.orig (+17 lines)
Lines 7-12 Link Here
7
PIDFILE=/var/run/radvd/radvd.pid
7
PIDFILE=/var/run/radvd/radvd.pid
8
SYSCTL_FORWARD=net.ipv6.conf.all.forwarding
8
SYSCTL_FORWARD=net.ipv6.conf.all.forwarding
9
9
10
opts="${opts} reload"
11
10
depend () {
12
depend () {
11
	need net
13
	need net
12
}
14
}
Lines 45-47 Link Here
45
		eend $?
47
		eend $?
46
	fi
48
	fi
47
}
49
}
50
51
reload() {
52
	checkconfig || return 1
53
54
	if [[ ${FORWARD} != "no" ]]; then
55
		ebegin "Enabling IPv6 forwarding"
56
		sysctl "${SYSCTL_FORWARD}=1" >/dev/null
57
		eend $?
58
	fi
59
60
	ebegin "Reloading IPv6 Router Advertisement Daemon"
61
	start-stop-daemon --stop --signal HUP --oknodo \
62
		--exec /usr/sbin/radvd --pidfile "${PIDFILE}"
63
	eend $?
64
}

Return to bug 166095