~ubuntu-branches/debian/stretch/grub2/stretch

« back to all changes in this revision

Viewing changes to util/grub.d/30_os-prober.in

Tags: upstream-1.98+20100705
ImportĀ upstreamĀ versionĀ 1.98+20100705

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh -e
 
1
#! /bin/sh
 
2
set -e
2
3
 
3
4
# grub-mkconfig helper script.
4
5
# Copyright (C) 2006,2007,2008,2009  Free Software Foundation, Inc.
44
45
        save_default_entry | sed -e "s/^/\t/"
45
46
        prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
46
47
        cat << EOF
47
 
        insmod ${GRUB_VIDEO_BACKEND}
 
48
        load_video
48
49
        set do_resume=0
49
50
        if [ /var/vm/sleepimage -nt10 / ]; then
50
51
           if xnu_resume /var/vm/sleepimage; then
51
52
             set do_resume=1
52
53
           fi
53
54
        fi
54
 
        if [ \$do_resume == 0 ]; then
 
55
        if [ \$do_resume = 0 ]; then
55
56
           xnu_uuid ${OSXUUID} uuid
56
57
           if [ -f /Extra/DSDT.aml ]; then
57
58
              acpi -e /Extra/DSDT.aml