From 3e9bb3b021620654f99a0ead71ed73d34b5c6826 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 3 Apr 2015 11:10:58 -0500 Subject: Make sysctl on Linux respect rc_verbose setting We do not need to spam the console with variable settings by default. This fixes #51. X-Gentoo-Bug: 541922 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=541922 --- init.d/sysctl.Linux.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'init.d') diff --git a/init.d/sysctl.Linux.in b/init.d/sysctl.Linux.in index a1a88977..1defcec4 100644 --- a/init.d/sysctl.Linux.in +++ b/init.d/sysctl.Linux.in @@ -10,7 +10,10 @@ depend() start() { + local quiet + yesno $rc_verbose || quiet=-q + ebegin "Configuring kernel parameters" - sysctl --system + sysctl ${quiet} --system eend $? "Unable to configure some kernel parameters" } -- cgit v1.2.3