[OE-core] [PATCH] initscripts: hide the error in case swapoff does not exist

Christopher Larson clarson at kergoth.com
Thu May 26 20:11:19 UTC 2016


On Thu, May 26, 2016 at 12:44 PM, Ming Liu <liu.ming50 at gmail.com> wrote:

> From: Ming Liu <peter.x.liu at external.atlascopco.com>
>
> To avoid reporting errors when swapoff does not exist.
>
> Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
>

This will suppress *real* errors as well. Better to just check if swapoff
exists and then run it if it does, if that's a concern.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160526/6d21ad23/attachment-0002.html>


More information about the Openembedded-core mailing list