An Interest In:
Web News this Week
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
October 17, 2021 04:57 am GMT
Open
Update your
Original Link: https://dev.to/dtan13/add-power-off-and-reboot-to-grub-menu-a45
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To