You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Most boards use a .rom file as a "plain" update, contents of the BIOS flash
20
17
UPDATE_PLAIN_EXT=rom
21
18
# talos-2 uses a .tgz file for its "plain" update, contains other parts as well
@@ -60,13 +57,13 @@ while true; do
60
57
;;
61
58
f | c)
62
59
if (whiptail $BG_COLOR_WARNING --title 'Flash the BIOS with a new ROM' \
63
-
--yesno "You will need to insert a USB drive containing your BIOS image (*.$UPDATE_PKG_EXT or\n*.$UPDATE_PLAIN_EXT).\n\nAfter you select this file, this program will reflash your BIOS.\n\nDo you want to proceed?" 0 80);then
60
+
--yesno "You will need to insert a USB drive containing your BIOS image (*.zip or\n*.$UPDATE_PLAIN_EXT).\n\nAfter you select this file, this program will reflash your BIOS.\n\nDo you want to proceed?" 0 80);then
find /media ! -path '*/\.*' -type f \( -name "*.$UPDATE_PLAIN_EXT" -o -type f -name "*.$UPDATE_PKG_EXT"\)| sort >/tmp/filelist.txt
66
+
find /media ! -path '*/\.*' -type f \( -name "*.$UPDATE_PLAIN_EXT" -o -type f -name "*.zip"\)| sort >/tmp/filelist.txt
70
67
fi
71
68
file_selector "/tmp/filelist.txt""Choose the ROM to flash"
72
69
if [ "$FILE"=="" ];then
@@ -76,7 +73,7 @@ while true; do
76
73
fi
77
74
78
75
# is an update package provided?
79
-
if [ -z"${PKG_FILE##*.$UPDATE_PKG_EXT}" ];then
76
+
if [ -z"${PKG_FILE##*.zip}" ];then
80
77
# Unzip the package
81
78
PKG_EXTRACT="/tmp/flash_gui/update_package"
82
79
rm -rf "$PKG_EXTRACT"
@@ -120,7 +117,7 @@ while true; do
120
117
ROM="$PKG_FILE"
121
118
ROM_HASH=$(sha256sum "$ROM"| awk '{print $1}')|| die "Failed to hash ROM file"
122
119
if! (whiptail $CONFIG_ERROR_BG_COLOR --title 'Flash ROM without integrity check?' \
123
-
--yesno "You have provided a *.$UPDATE_PLAIN_EXT file. The integrity of the file can not be\nchecked automatically for this file type.\n\nROM: $ROM\nSHA256SUM: $ROM_HASH\n\nIf you do not know how to check the file integrity yourself,\nyou should use a *.$UPDATE_PKG_EXT file instead.\n\nIf the file is damaged, you will not be able to boot anymore.\nDo you want to proceed flashing without file integrity check?" 0 80);then
120
+
--yesno "You have provided a *.$UPDATE_PLAIN_EXT file. The integrity of the file can not be\nchecked automatically for this file type.\n\nROM: $ROM\nSHA256SUM: $ROM_HASH\n\nIf you do not know how to check the file integrity yourself,\nyou should use a *.zip file instead.\n\nIf the file is damaged, you will not be able to boot anymore.\nDo you want to proceed flashing without file integrity check?" 0 80);then
0 commit comments