On 05/26/2016 10:11 PM, Christopher Larson wrote: > > > On Thu, May 26, 2016 at 12:44 PM, Ming Liu > wrote: > > From: Ming Liu > > > To avoid reporting errors when swapoff does not exist. > > Signed-off-by: Ming Liu > > > > 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