Skip to content

Instantly share code, notes, and snippets.

View darkexplosiveqwx's full-sized avatar

darkexplosiveqwx

  • 21:48 (UTC +01:00)
View GitHub Profile
@darkexplosiveqwx
darkexplosiveqwx / 40_reboot_poweroff
Created December 20, 2024 20:01
Adds boot menu entries for Rebooting and Halting to grub
#!/bin/sh
# This script adds "Reboot" and "Shutdown" menu entries to GRUB.
# Make executable by sudo chmod +x /etc/grub.d/40_reboot_shutdown
# Place in /etc/grub.d
set -e
prefix="/usr"
exec_prefix="/usr"