arch/pkg/de-p1st-grub/grub.holoscript

12 lines
287 B
Plaintext
Raw Permalink Normal View History

2021-05-03 16:12:27 +02:00
#!/bin/sh
# stdin: default config
# stdout: modified config
2021-09-10 15:59:33 +02:00
set -e
2021-05-03 16:12:27 +02:00
# 1) and 2) remember last selected entry; 3) disable submenu
sed '
s|^GRUB_DEFAULT=0$|GRUB_DEFAULT=saved|;
s|^#GRUB_SAVEDEFAULT=true$|GRUB_SAVEDEFAULT=true|;
2021-05-03 16:12:27 +02:00
s|^#GRUB_DISABLE_SUBMENU=y$|GRUB_DISABLE_SUBMENU=y|;
'