File boot.cycle.grub2 of Package bootcycle
#! /bin/sh set -e test -e /etc/sysconfig/bootloader && . /etc/sysconfig/bootloader || exit 1 test "x$LOADER_TYPE" = "xgrub2" || exit 0 test "x$CYCLE_DETECTION" = "xyes" || exit 0 test -n "$CYCLE_NEXT_ENTRY" || exit 1 test -x /usr/sbin/grub2-once || exit 1 test -x /usr/sbin/grub2-set-default || exit 1 /usr/sbin/grub2-once --list | grep -q -e '^[ \t]*[0-9]\{1,\} halt$' || exit 1 /usr/sbin/grub2-set-default "halt" /usr/sbin/grub2-once "$CYCLE_NEXT_ENTRY"