Hello,
To make the customization of Ventoy even more advanced, would it be possible to allow the customization of the F2, F4 and F5 sub-menu?
Code to be placed in grub.cfg :
Thank you very much for your work!
To make the customization of Ventoy even more advanced, would it be possible to allow the customization of the F2, F4 and F5 sub-menu?
Code to be placed in grub.cfg :
Code:
function ventoy_power {
if [ -e $vt_plugin_path/ventoy/submenu/F2.cfg ]; then
configfile $vt_plugin_path/ventoy/submenu/F2.cfg
else
configfile $prefix/power.cfg
fi
}
function ventoy_localboot {
if [ -e $vt_plugin_path/ventoy/submenu/F4.cfg ]; then
configfile $vt_plugin_path/ventoy/submenu/F4.cfg
else
configfile $prefix/localboot.cfg
fi
}
function ventoy_diagnosis {
if [ -e $vt_plugin_path/ventoy/submenu/F5.cfg ]; then
configfile $vt_plugin_path/ventoy/submenu/F5.cfg
else
configfile $prefix/debug.cfg
fi
}
function ventoy_ext_menu {
if [ -e $vt_plugin_path/ventoy/submenu/F6.cfg ]; then
set ventoy_new_context=1
configfile $vt_plugin_path/ventoy/submenu/F6.cfg
unset ventoy_new_context
else
echo "ventoy_grub.cfg NOT exist."
echo -e "\npress ENTER to exit ..."
read vtInputKey
fi
}
Thank you very much for your work!