HEX
Server: Apache
System: Linux 66-116-199-115.webhostbox.net 5.14.0-427.31.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 15 14:47:52 EDT 2024 x86_64
User: blushinc (1003)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/libexec/grub2/systemd-integration.sh
#!/usr/bin/sh

TIMEOUT_USEC=$(cat /run/systemd/reboot-to-boot-loader-menu)
TIMEOUT=$(((TIMEOUT_USEC + 500000) / 1000000))

grub2-editenv - set menu_show_once_timeout=$TIMEOUT

# Downstream RH / Fedora patch for compatibility with old, not (yet)
# regenerated grub.cfg files which miss the menu_show_once_timeout check
# this older grubenv variable leads to a fixed timeout of 60 seconds
grub2-editenv - set menu_show_once=1