Summary: | init.d/sysctl: Add --quiet | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Mira Ressel <aranea> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | whissi |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 520144 |
Description
Mira Ressel
2015-03-02 16:24:12 UTC
Please take $rc_verbose for this into account, something like --- /etc/init.d/sysctl.old 2015-03-02 19:03:44.506263213 +0100 +++ /etc/init.d/sysctl 2015-03-02 19:05:34.540650678 +0100 @@ -10,7 +10,10 @@ start() { + local redirect + yesno $rc_verbose || redirect='> /dev/null 2>&1' + ebegin "Configuring kernel parameters" - sysctl --system + eval sysctl --system ${redirect} eend $? "Unable to configure some kernel parameters" } or with "--quiet" like Luis proposed: --- /etc/init.d/sysctl.old 2015-03-02 19:03:44.506263213 +0100 +++ /etc/init.d/sysctl 2015-03-02 19:16:51.891968328 +0100 @@ -10,7 +10,10 @@ start() { + local quiet= + yesno $rc_verbose || quiet="--quiet" + ebegin "Configuring kernel parameters" - sysctl --system + eval sysctl ${quiet} --system eend $? "Unable to configure some kernel parameters" } |