Actions
Bug #1092
closedgenModel if/then logic is incorrect
Status:
Closed
Priority:
Immediate
Assignee:
Category:
04 - Root File System
Target version:
Start date:
03 Jan 2024
Due date:
% Done:
100%
Estimated time:
Severity:
01 - Critical
Description
It uses grep -q and tests the rc. But this doesn't work correctly, or at least is used incorrectly.
The better (and tested) solution is to test if the grep returns anything, as in
if [ -z "$(grep MODEL /etc/pibox-version)" ]; then
This was on some of the boards I had but apparently didn't make into the source tree.
Actions