/etc/grub.d/40_custom

#376
Raw
Author
winny
Created
Aug. 12, 2021, 5:28 p.m.
Expires
Never
Size
838 bytes
Hits
53
Syntax
Bash
#!/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.
menuentry "System shutdown" {
	echo "System shutting down..."
	halt
}
menuentry "System restart" {
	echo "System rebooting..."
	reboot
}

if [ ${grub_platform} == "efi" ]; then
	menuentry "Firmware setup" {
		fwsetup
	}
fi

# menuentry 'GaryOS' {
# 	load_video
# 	if [ "x$grub_platform" = xefi ]; then
# 		set gfxpayload=keep
# 	fi
# 	insmod gzio
# 	insmod part_gpt
# 	insmod fat
# 	if [ x$feature_platform_search_hint = xy ]; then
# 		search --no-floppy --fs-uuid --set=root  C72E-C0F7
# 	else
# 		search --no-floppy --fs-uuid --set=root C72E-C0F7
#     	fi
# 	linux gary-os-v3.0-generic_64.kernel
# }