Skip to content

Commit 66682d0

Browse files
committed
flash-gui.sh: run nitropad-shutdown.sh for required boards
1 parent bf9d2de commit 66682d0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

initrd/bin/flash-gui.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ while true; do
7474
whiptail --title 'ROM Flashed Successfully' \
7575
--msgbox "${ROM#"/media/"}\n\nhas been flashed successfully.\n\nPress Enter to reboot\n" 0 80
7676
umount /media
77-
/bin/reboot
77+
78+
79+
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
80+
/bin/nitropad-shutdown.sh
81+
else
82+
/bin/reboot
83+
fi
7884
else
7985
exit
8086
fi

0 commit comments

Comments
 (0)