Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 17, 2021 04:57 am GMT

Add Power Off and Reboot to grub menu

To add Power Off and Reboot options to grub menu, you need to update a file in your grub configuration directory.

cd /etc/grub.d

Open 40_custom in your favorite editor

For me its micro :

micro 40_custom

Add following line at the end of the file

 menuentry "Reboot" {      reboot}menuentry "Power Off" {      halt}

Do not change the exec tail line in the file

Update your grub.cfg file

  • For Debian based distros
update-grub
  • For Arch based and Other distros
grub-mkconfig -o /boot/grub/grub.cfg

Original Link: https://dev.to/dtan13/add-power-off-and-reboot-to-grub-menu-a45

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To