Skip to content

Commit

Permalink
add timeout for boot menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mytbk committed Feb 3, 2019
1 parent 51d7fd6 commit 8a7b5e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ syslinux_header() {
cat << EOF
UI menu.c32
TIMEOUT 50
MENU TITLE Live USB
MENU COLOR border 30;44 #40ffffff #a0000000 std
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
Expand All @@ -178,10 +180,10 @@ EOF
}

grubcfg_header() {
echo '# The live USB grub.cfg file'

if [ -z "$TXTMODE" ]; then
cat << 'EOF'
set default=0
set timeout=5
if [ ${grub_platform} == efi ]; then
insmod all_video
insmod font
Expand All @@ -194,5 +196,4 @@ if [ ${grub_platform} == efi ]; then
fi
EOF
fi
}

0 comments on commit 8a7b5e6

Please sign in to comment.