Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Adding a reboot menu
#1
Good afternoon,

I want to add additional menus (like in grub 4 dos) :reboot,halt in main menu(ventoy.json).
Help me write the code for this. thank you.
It's faster to flip the toggle switch on an extension cord than it is "f5>power>halt>"
Did not find this function in VentoyPlugson.

GrubDos4:
Code:
title __________Reset!__________
reboot

title __________Shoutdown!______
halt
kind of like this:
Code:
menuentry "Reset" --class=custom {
    echo ' Reset '
    reboot  
}
photo menu
Reply
#2
Use F6 and add your own menu
Reply
#3
(02-11-2025, 12:52 PM)Steve2926 Wrote: Use F6 and add your own menu
It appears, in the file(ventoy.json) itself can not be prescribed new sections (menu items).This is disappointing.
Reply
#4
You can make F6 do just one function by not using menuentry, just put in the command in the .cfg file - e.g.

reboot

and then when you press F6 it will reboot.
If you like to make your own menus, etc. you can try easy2boot ?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)