Blame | Last modification | View Log | RSS feed
#! /bin/sh -e# Reset Boot Success## The 08_fallback_counting and 12_menu_auto_hide snippets rely on this one# and need to be kept in sync.## The boot_success var needs to be set to 1 from userspace to mark a boot successful.cat << EOF# Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entryif [ "\${boot_success}" = "1" -o "\${boot_indeterminate}" = "1" ]; thenset menu_hide_ok=1elseset menu_hide_ok=0fi# Reset boot_indeterminate after a successful bootif [ "\${boot_success}" = "1" ] ; thenset boot_indeterminate=0# Avoid boot_indeterminate causing the menu to be hidden more then onceelif [ "\${boot_indeterminate}" = "1" ]; thenset boot_indeterminate=2fi# Reset boot_success for current bootset boot_success=0save_env boot_success boot_indeterminateEOF