mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
12 lines
292 B
Bash
12 lines
292 B
Bash
#!/bin/sh
|
|
# stdin: default config
|
|
# stdout: modified config
|
|
set -e
|
|
|
|
# 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"|;
|
|
s|^#GRUB_DISABLE_SUBMENU=y$|GRUB_DISABLE_SUBMENU=y|;
|
|
'
|