Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ultimate customisation
#1
Lightbulb 
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 :
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!
Reply


Messages In This Thread
Ultimate customisation - by AAA3A - 05-05-2021, 10:14 AM
RE: Ultimate customisation - by longpanda - 05-05-2021, 01:44 PM
RE: Ultimate customisation - by AAA3A - 05-05-2021, 02:48 PM
RE: Ultimate customisation - by longpanda - 05-06-2021, 03:42 AM
RE: Ultimate customisation - by AAA3A - 05-06-2021, 05:06 PM
RE: Ultimate customisation - by AAA3A - 05-17-2021, 04:45 PM
RE: Ultimate customisation - by longpanda - 05-18-2021, 01:17 AM
RE: Ultimate customisation - by AAA3A - 05-18-2021, 07:57 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)