Skip to content

Commit

Permalink
filesystem: reboot-test: also output log to serial console
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Xie <nick@khadas.com>
  • Loading branch information
numbqq committed Jan 20, 2024
1 parent 436aa8c commit 101f4c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ count=15

while true
do
echo "Rebooting count $count" > /dev/tty1
echo "Rebooting count $count" | tee /dev/tty1 /dev/ttyS0 > /dev/null
sleep 1
if [ $count -eq 0 ]; then
break
Expand All @@ -14,7 +14,7 @@ do
count=$((count - 1))
done

echo "Rebooting ..." > /dev/tty1
echo "Rebooting ..." | tee /dev/tty1 /dev/ttyS0 > /dev/null

sync
reboot reboot_test

0 comments on commit 101f4c3

Please sign in to comment.