Ventoy Forums
Thoughts about Ventoy Menu Extension Plugin - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: Thoughts about Ventoy Menu Extension Plugin (/showthread.php?tid=1892)



Thoughts about Ventoy Menu Extension Plugin - spirtman96 - 11-23-2021

It may be convenient to immediately go to the partition with images, of exist /Ventoy/ventoy_Grub.cfg

Code:
function ventoy_ext_menu {   
    if [ -e $vt_plugin_path/ventoy/ventoy_grub.cfg ]; then
    search -s root -f /ventoy/ventoy_grub.cfg
        set ventoy_new_context=1
        configfile $vt_plugin_path/ventoy/ventoy_grub.cfg
        unset ventoy_new_context
    else
       echo "ventoy_grub.cfg NOT exist."
       echo -e "\npress ENTER to exit ..."
       read vtInputKey
    fi
}

Is this my option, what do you think?