Skip to content

Commit

Permalink
flash-gui.sh: run nitropad-shutdown.sh for required boards
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Jul 7, 2023
1 parent bf9d2de commit 66682d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion initrd/bin/flash-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ while true; do
whiptail --title 'ROM Flashed Successfully' \
--msgbox "${ROM#"/media/"}\n\nhas been flashed successfully.\n\nPress Enter to reboot\n" 0 80
umount /media
/bin/reboot


if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
/bin/nitropad-shutdown.sh
else
/bin/reboot
fi
else
exit
fi
Expand Down

0 comments on commit 66682d0

Please sign in to comment.