Skip to content

Instantly share code, notes, and snippets.

@SparkySimp
Last active August 2, 2023 05:06
Show Gist options
  • Save SparkySimp/cd934ec3a9bc37730e5eef005ba5aeb6 to your computer and use it in GitHub Desktop.
Save SparkySimp/cd934ec3a9bc37730e5eef005ba5aeb6 to your computer and use it in GitHub Desktop.
ACPI for GRUB
#!/usr/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 "ACPI for GRUB" {
menuentry "ACPI for GRUB (0.4.1) - Reboot" {
echo "Rebooting..."
reboot
}
menuentry "ACPI for GRUB (0.4.1) - Exit (power off)" {
echo "Powering off..."
halt
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment