Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
#! /bin/sh
2
# Menu Auto Hide
3
#
4
# This snippet depends on 10_reset_boot_success and needs to be kept in sync.
5
#
6
# Disable / skip generating menu-auto-hide config parts on serial terminals
7
for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do
8
  case "$x" in
9
    serial*)
10
      exit 0
11
      ;;
12
  esac
13
done
14
 
15
cat << EOF
16
if [ x\$feature_timeout_style = xy ] ; then
17
  if [ "\${menu_show_once}" ]; then
18
    unset menu_show_once
19
    save_env menu_show_once
20
    set timeout_style=menu
21
    set timeout=60
22
  elif [ "\${menu_auto_hide}" -a "\${menu_hide_ok}" = "1" ]; then
23
    set orig_timeout_style=\${timeout_style}
24
    set orig_timeout=\${timeout}
25
    if [ "\${fastboot}" = "1" ]; then
26
      # timeout_style=menu + timeout=0 avoids the countdown code keypress check
27
      set timeout_style=menu
28
      set timeout=0
29
    else
30
      set timeout_style=hidden
31
      set timeout=1
32
    fi
33
  fi
34
fi
35
EOF