Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 484796 | Differences between
and this patch

Collapse All | Expand All

(-)a/init.d/sysctl.Linux.in (-21 / +2 lines)
Lines 10-34 depend() Link Here
10
10
11
start()
11
start()
12
{
12
{
13
	local conf= retval=0 err errs
14
15
	ebegin "Configuring kernel parameters"
13
	ebegin "Configuring kernel parameters"
16
	eindent
14
	sysctl --system
17
15
	eend $? "Unable to configure all parameters"
18
	for conf in @SYSCONFDIR@/sysctl.conf @SYSCONFDIR@/sysctl.d/*.conf; do
19
		if [ -r "$conf" ]; then
20
			vebegin "applying $conf"
21
			if ! err=$(sysctl -p "$conf" 2>&1 >/dev/null) ; then
22
				errs="${errs} ${err}"
23
				sysctl -e -p "${conf}" >/dev/null
24
			fi
25
			veend $? || retval=1
26
		fi
27
	done
28
29
	eoutdent
30
	if [ ${retval} -eq 0 ] && [ -n "${errs}" ] ; then
31
		ewarn "Unknown keys:${errs}"
32
	fi
33
	eend $retval "Some errors were encountered: ${errs}"
34
}
16
}
35
- 

Return to bug 484796