Skip to content

Commit a644d1b

Browse files
committed
flash-gui.sh: run nitropad-shutdown.sh for required boards
1 parent b0a2570 commit a644d1b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

initrd/bin/flash-gui.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ while true; do
8080
whiptail --title 'ROM Flashed Successfully' \
8181
--msgbox "${ROM#"/media/"}\n\nhas been flashed successfully.\n\nPress Enter to reboot\n" 0 80
8282
umount /media
83-
/bin/reboot
83+
84+
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
85+
/bin/nitropad-shutdown.sh
86+
else
87+
/bin/reboot
88+
fi
8489
else
8590
exit
8691
fi

0 commit comments

Comments
 (0)