diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-04-03 11:10:58 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-04-07 17:57:56 -0500 |
commit | 3e9bb3b021620654f99a0ead71ed73d34b5c6826 (patch) | |
tree | ff7655ac8195f80673c1273a2994464fc7472e7a /init.d | |
parent | c068762c4cf49e7ea9719dcab2e5f7d4c4e7e2e5 (diff) |
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
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/sysctl.Linux.in | 5 |
1 files changed, 4 insertions, 1 deletions
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" } |