Created
December 9, 2023 11:22
-
-
Save siddhpant/b9ee0f4c5cecd7846d13830fa5bb418d to your computer and use it in GitHub Desktop.
Grub Reboot and Shutdown menu entry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec tail -n +3 $0 | |
# This file provides an easy way to add custom menu entries. Simply type the | |
# menu entries you want to add after this comment. Be careful not to change | |
# the 'exec tail' line above. | |
submenu "Reboot / Shutdown" --class restart { | |
menuentry "Reboot" --class restart { | |
reboot | |
} | |
menuentry "Shutdown" --class shutdown { | |
halt | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo vim /etc/grub.d/40_custom
and paste the above.