unset ventoy_new_context
else
echo "ventoy_grub.cfg NOT exist."
- echo -e "\npress ENTER to exit ..."
+ echo -V "VTMENU_ENTER_EXIT ..."
read vtInputKey
fi
}
configfile "mem:${vt_sys_menu_mem_addr}:size:${vt_sys_menu_mem_size}"
fi
fi
+
+ if [ $vtback_cfg_find -eq 0 ]; then
+ if [ -f (loop)/boot/isolinux/syslnx64.cfg ]; then
+ syslinux_configfile (loop)/boot/isolinux/syslnx64.cfg
+ set vtback_cfg_find=1
+ fi
+ fi
if [ "$vtback_cfg_find" = "0" ]; then
echo " "
configfile "mem:${vt_sys_menu_mem_addr}:size:${vt_sys_menu_mem_size}"
fi
fi
+
+ if [ $vtback_cfg_find -eq 0 ]; then
+ if [ -f (loop)/boot/isolinux/syslnx64.cfg ]; then
+ syslinux_configfile (loop)/boot/isolinux/syslnx64.cfg
+ set vtback_cfg_find=1
+ fi
+ fi
vt_unset_boot_opt
set root=$vtback_root
echo -e "\n $vt_volume_space $vt_chosen_size $vt_chosen_size_mod\n"
echo -e "\n The size of the iso file \"$vt_chosen_size\" is invalid. File corrupted ?\n"
echo -e " 此ISO文件的大小 \"$vt_chosen_size\" 有问题,请确认文件是否损坏。\n"
- echo -e "\n press ENTER to continue (请按 回车 键继续) ..."
+ echo -v "VTMENU_ENTER_CONTINUE ..."
read vtInputKey
fi
fi
function common_unsupport_menuentry {
echo -e "\n The name of the iso file could NOT contain space or non-ascii characters. \n"
echo -e " 文件名中不能有中文或空格 \n"
- echo -e "\npress ENTER to exit (请按 回车 键返回) ..."
+ echo -V "VTMENU_ENTER_EXIT ..."
read vtInputKey
}
echo -e "!!! WARNING !!!\n"
echo -e "\nPartition1 ($vtoy_iso_fs) is NOT ntfs, the VHD(x) file may not boot normally \n"
echo -e "\nVHD(x) 文件所在分区不是 ntfs 格式, 可能无法正常启动 \n\n"
- echo -n "press ENTER to continue boot (请按 回车 键继续) ..."
+ echo -vn "VTMENU_ENTER_CONTINUE ..."
read vtInputKey
fi
fi
function only_uefi_tip {
echo -e "\n This IMG file is only supported in UEFI mode. \n"
- echo -e "\n press ENTER to exit ..."
+ echo -V "VTMENU_ENTER_EXIT ..."
read vtInputKey
}
ventoy_gui_console
echo -e "\n ventoy_openwrt.xz not found. Please refer https://www.ventoy.net/en/doc_openwrt.html.\n"
echo -e " 未找到 ventoy_openwrt.xz 文件。请参考 https://www.ventoy.net/cn/doc_openwrt.html\n"
- echo -e "\n press ENTER to exit (请按 回车 键返回) ..."
+ echo -V "VTMENU_ENTER_EXIT ..."
read vtInputKey
ventoy_cli_console
return
function img_unsupport_tip {
echo -e "\n This IMG file is NOT supported now. \n"
echo -e " 当前不支持启动此 IMG 文件 \n"
- echo -e "\npress ENTER to exit (请按 回车 键返回) ..."
+ echo -V "VTMENU_ENTER_EXIT ..."
read vtInputKey
}
elif [ -f (vtimghd,2)/loader/entries/ubos.conf ]; then
ventoy_img_ubos
elif [ -f (vtimghd,2)/etc/openwrt_version ]; then
- ventoy_img_openwrt
- elif [ -f (vtimghd,1)/efi/boot/mt86.png ]; then
- if [ "$grub_platform" = "pc" ]; then
- img_unsupport_tip
- else
- ventoy_img_memtest86
- fi
+ ventoy_img_openwrt
else
+ if [ -f (vtimghd,1)/efi/boot/mt86.png ]; then
+ if [ "$grub_platform" = "pc" ]; then
+ img_unsupport_tip
+ fi
+ fi
+
+ #common chain
vt_linux_chain_data "${vtoy_iso_part}${vt_chosen_path}"
ventoy_acpi_param ${vtoy_chain_mem_addr} 512
if [ "$grub_platform" = "pc" ]; then
#############################################################
#############################################################
-set VENTOY_VERSION="1.0.84"
+set VENTOY_VERSION="1.0.85"
#ACPI not compatible with Window7/8, so disable by default
set VTOY_PARAM_NO_ACPI=1