79399682

Date: 2025-01-30 11:15:26
Score: 2
Natty:
Report link

if gpio input 102; then setenv board_name revA ; else setenv board_name revB;fi

The if statement checks the return status of the command "gpio input 102", not the GPIO value. A return status of 0 indicates success (true). A return status of 1 indicates failure (false).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Karthik Kumar