Skip to content

Commit

Permalink
setup: don't continue pre-setup flashing during real setup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone committed Feb 8, 2024
1 parent 31abc6a commit fc35675
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup/pi/setup-teslausb
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,17 @@ then
fi
fi

# Turn on all leds in case they're still flashing
# from pre-setup.
for led in /sys/class/leds/*
do
if [ -e "$led/trigger" ]
then
echo none > "$led/trigger" || true
echo 1 > "$led/brightness" || true
fi
done

# Update config.txt if needed
if [ -f "$PICONFIG_PATH" ]
then
Expand Down

0 comments on commit fc35675

Please sign in to comment.