[LEDE-DEV] [PATCH v4] base-files: Ensure reset only works if an overlay exists
Chris Blake
chrisrblake93 at gmail.com
Sun Oct 23 21:19:43 PDT 2016
Hello,
Alexis is correct, it's to ensure any chance of a random error is
suppressed. 2> /dev/null was just added as a protection.
Regards,
Chris Blake
On Sun, Oct 23, 2016 at 4:46 PM, Alexis Green <alexis at cessp.it> wrote:
> I’m guessing it’s because there might some random error message from grep?
> Maybe use -s option for grep instead to suppress error messages?
>
>> On Oct 23, 2016, at 12:30 PM, Bastian Bittorf <bb at npl.de> wrote:
>>
>> * Chris Blake <chrisrblake93 at gmail.com> [23.10.2016 21:10]:
>>> +OVERLAY="$( grep ' /overlay ' /proc/mounts 2>/dev/null )"
>>
>> whats the reason for the 2>...?
>>
>> bye, bastian
>>
>> _______________________________________________
>> Lede-dev mailing list
>> Lede-dev at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/lede-dev
>
More information about the Lede-dev
mailing list