[OE-core] [PATCH] initscripts: hide the error in case swapoff does not exist
Ming Liu
liu.ming50 at gmail.com
Thu May 26 20:25:23 UTC 2016
On 05/26/2016 10:11 PM, Christopher Larson wrote:
>
>
> On Thu, May 26, 2016 at 12:44 PM, Ming Liu <liu.ming50 at gmail.com
> <mailto:liu.ming50 at gmail.com>> wrote:
>
> From: Ming Liu <peter.x.liu at external.atlascopco.com
> <mailto: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
> <mailto: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.
Yes, checking if it exists makes more sense. And swapon is being used
with 2> /dev/null as well in some places, better to change them also. I
will send a V1 soon.
//Ming Liu
> --
> 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/54c367d2/attachment-0002.html>
More information about the Openembedded-core
mailing list