GIF89a;
Mass Deface Email Grabber
) with no extra spaces. Depending on your shell some characters including > may need escaping. More information about this is available in the GRUB Manual in the section about the 'default' command. "; echo echo gettext "Report bugs to ."; echo } argument () { opt=$1 shift if test $# -eq 0; then gettext_printf "%s: option requires an argument -- \`%s'\n" "$self" "$opt" 1>&2 exit 1 fi echo $1 } # Check the arguments. while test $# -gt 0 do option=$1 shift case "$option" in -h | --help) usage exit 0 ;; -v | --version) echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}" exit 0 ;; # Accept for compatibility --root-directory) rootdir=`argument $option "$@"`; shift ;; --root-directory=*) rootdir=`echo "$option" | sed 's/--root-directory=//'` ;; --boot-directory) bootdir=`argument $option "$@"`; shift;; --boot-directory=*) bootdir=`echo "$option" | sed 's/--boot-directory=//'` ;; -*) gettext_printf "Unrecognized option \`%s'\n" "$option" 1>&2 usage exit 1 ;; *) if test "x$entry" != x; then gettext "More than one menu entry?" 1>&2 echo >&2 usage exit 1 fi entry="${option}" ;; esac done if test "x$entry" = x; then gettext "Menu entry not specified." 1>&2 echo >&2 usage exit 1 fi if [ -z "$bootdir" ]; then # Default bootdir if bootdir not initialized. bootdir=/boot if [ -n "$rootdir" ] ; then # Initialize bootdir if rootdir was initialized. bootdir=${rootdir}/boot fi fi grubdir=`echo "${bootdir}/grub2" | sed 's,//*,/,g'` # Restore saved_entry if it was set by previous version prev_saved_entry=`$grub_editenv ${grubdir}/grubenv list | sed -n 's/^prev_saved_entry=//p'` if [ "$prev_saved_entry" ]; then $grub_editenv ${grubdir}/grubenv set saved_entry="$prev_saved_entry" $grub_editenv ${grubdir}/grubenv unset prev_saved_entry fi $grub_editenv ${grubdir}/grubenv set next_entry="$entry" # Bye. exit 0