2021-10-19 05:42:32 -04:00
|
|
|
|
2022-12-31 11:31:08 -05:00
|
|
|
unset vtchkdef
|
2023-01-09 23:23:35 -05:00
|
|
|
vt_vtoychksum_exist "${VTOY_CHKSUM_FILE_PATH}"
|
2022-12-31 11:31:08 -05:00
|
|
|
|
2023-01-09 23:23:35 -05:00
|
|
|
if [ "$VT_EXIST_MD5" = "1" ]; then
|
2022-12-31 11:31:08 -05:00
|
|
|
if [ -z "$vtchkdef" ]; then
|
|
|
|
set default=0
|
|
|
|
set vtchkdef=1
|
|
|
|
fi
|
2022-12-19 10:49:25 -05:00
|
|
|
menuentry "$VTLANG_CHKSUM_MD5_CALC_CHK" --class=checksum_md5 {
|
2022-12-31 11:31:08 -05:00
|
|
|
md5sum "${vtoy_iso_part}${VTOY_CHKSUM_FILE_PATH}"
|
|
|
|
vt_cmp_checksum 0 "${VTOY_CHKSUM_FILE_PATH}"
|
|
|
|
|
2022-12-19 10:49:25 -05:00
|
|
|
echo -en "\n\n$VTLANG_ENTER_EXIT ..."
|
2021-10-24 06:52:09 -04:00
|
|
|
read vtInputKey
|
|
|
|
}
|
|
|
|
else
|
2022-12-19 10:49:25 -05:00
|
|
|
menuentry "$VTLANG_CHKSUM_MD5_CALC" --class=checksum_md5 {
|
2021-10-24 06:52:09 -04:00
|
|
|
md5sum "${vtoy_iso_part}${VTOY_CHKSUM_FILE_PATH}"
|
|
|
|
|
2022-12-19 10:49:25 -05:00
|
|
|
echo -en "\n\n$VTLANG_ENTER_EXIT ..."
|
2021-10-24 06:52:09 -04:00
|
|
|
read vtInputKey
|
|
|
|
}
|
|
|
|
fi
|
2021-10-19 05:42:32 -04:00
|
|
|
|
2023-01-09 23:23:35 -05:00
|
|
|
if [ "$VT_EXIST_SHA1" = "1" ]; then
|
2022-12-31 11:31:08 -05:00
|
|
|
if [ -z "$vtchkdef" ]; then
|
|
|
|
set default=1
|
|
|
|
set vtchkdef=1
|
|
|
|
fi
|
2022-12-19 10:49:25 -05:00
|
|
|
menuentry "$VTLANG_CHKSUM_SHA1_CALC_CHK" --class=checksum_sha1 {
|
2021-10-24 06:52:09 -04:00
|
|
|
sha1sum "${vtoy_iso_part}${VTOY_CHKSUM_FILE_PATH}"
|
2022-12-31 11:31:08 -05:00
|
|
|
vt_cmp_checksum 1 "${VTOY_CHKSUM_FILE_PATH}"
|
2021-10-24 06:52:09 -04:00
|
|
|
|
2022-12-19 10:49:25 -05:00
|
|
|
echo -en "\n\n$VTLANG_ENTER_EXIT ..."
|
2021-10-24 06:52:09 -04:00
|
|
|
read vtInputKey
|
|
|
|
}
|
|
|
|
else
|
2022-12-19 10:49:25 -05:00
|
|
|
menuentry "$VTLANG_CHKSUM_SHA1_CALC" --class=checksum_sha1 {
|
2021-10-24 06:52:09 -04:00
|
|
|
sha1sum "${vtoy_iso_part}${VTOY_CHKSUM_FILE_PATH}"
|
|
|
|
|
2022-12-19 10:49:25 -05:00
|
|
|
echo -en "\n\n$VTLANG_ENTER_EXIT ..."
|
2021-10-24 06:52:09 -04:00
|
|
|
read vtInputKey
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-09 23:23:35 -05:00
|
|
|
if [ "$VT_EXIST_SHA256" = "1" ]; then
|
2022-12-31 11:31:08 -05:00
|
|
|
if [ -z "$vtchkdef" ]; then
|
|
|
|
set default=2
|
|
|
|
set vtchkdef=1
|
|
|
|
fi
|
2022-12-19 10:49:25 -05:00
|
|
|
menuentry "$VTLANG_CHKSUM_SHA256_CALC_CHK" --class=checksum_sha256 {
|
2021-10-24 06:52:09 -04:00
|
|
|
sha256sum "${vtoy_iso_part}${VTOY_CHKSUM_FILE_PATH}"
|
2022-12-31 11:31:08 -05:00
|
|
|
vt_cmp_checksum 2 "${VTOY_CHKSUM_FILE_PATH}"
|
2021-10-24 06:52:09 -04:00
|
|
|
|
2022-12-19 10:49:25 -05:00
|
|
|
echo -en "\n\n$VTLANG_ENTER_EXIT ..."
|
2021-10-24 06:52:09 -04:00
|
|
|
read vtInputKey
|
|
|
|
}
|
|
|
|
else
|
2022-12-19 10:49:25 -05:00
|
|
|
menuentry "$VTLANG_CHKSUM_SHA256_CALC" --class=checksum_sha256 {
|
2021-10-24 06:52:09 -04:00
|
|
|
sha256sum "${vtoy_iso_part}${VTOY_CHKSUM_FILE_PATH}"
|
|
|
|
|
2022-12-19 10:49:25 -05:00
|
|
|
echo -en "\n\n$VTLANG_ENTER_EXIT ..."
|
2021-10-24 06:52:09 -04:00
|
|
|
read vtInputKey
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-09 23:23:35 -05:00
|
|
|
if [ "$VT_EXIST_SHA512" = "1" ]; then
|
2022-12-31 11:31:08 -05:00
|
|
|
if [ -z "$vtchkdef" ]; then
|
|
|
|
set default=3
|
|
|
|
set vtchkdef=1
|
|
|
|
fi
|
2022-12-19 10:49:25 -05:00
|
|
|
menuentry "$VTLANG_CHKSUM_SHA512_CALC_CHK" --class=checksum_sha512{
|
2021-10-24 06:52:09 -04:00
|
|
|
sha512sum "${vtoy_iso_part}${VTOY_CHKSUM_FILE_PATH}"
|
2022-12-31 11:31:08 -05:00
|
|
|
vt_cmp_checksum 3 "${VTOY_CHKSUM_FILE_PATH}"
|
2021-10-24 06:52:09 -04:00
|
|
|
|
2022-12-19 10:49:25 -05:00
|
|
|
echo -en "\n\n$VTLANG_ENTER_EXIT ..."
|
2021-10-24 06:52:09 -04:00
|
|
|
read vtInputKey
|
|
|
|
}
|
|
|
|
else
|
2022-12-19 10:49:25 -05:00
|
|
|
menuentry "$VTLANG_CHKSUM_SHA512_CALC" --class=checksum_sha512{
|
2021-10-24 06:52:09 -04:00
|
|
|
sha512sum "${vtoy_iso_part}${VTOY_CHKSUM_FILE_PATH}"
|
|
|
|
|
2022-12-19 10:49:25 -05:00
|
|
|
echo -en "\n\n$VTLANG_ENTER_EXIT ..."
|
2021-10-24 06:52:09 -04:00
|
|
|
read vtInputKey
|
|
|
|
}
|
|
|
|
fi
|
2021-10-19 05:42:32 -04:00
|
|
|
|
|
|
|
|
2022-12-19 10:49:25 -05:00
|
|
|
menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
|
2021-10-19 05:42:32 -04:00
|
|
|
echo 'Return ...'
|
|
|
|
}
|