~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to util/grub.d/00_header.in

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-01-13 00:12:41 UTC
  • mto: (17.6.25 experimental)
  • mto: This revision was merged to the branch mainline in revision 101.
  • Revision ID: james.westby@ubuntu.com-20110113001241-d0sw2da4vmtuq2h1
Tags: upstream-1.99~20110112
ImportĀ upstreamĀ versionĀ 1.99~20110112

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
EOF
85
85
else
86
86
    # Insert all available backends; GRUB will use the most appropriate.
 
87
    have_video=0;
87
88
    for backend in $(cat "${GRUB_PREFIX}/video.lst"); do
 
89
        have_video=1;
88
90
        cat <<EOF
89
91
  insmod ${backend}
90
92
EOF
91
93
    done
 
94
    if [ x$have_video = x0 ]; then
 
95
        echo "true"
 
96
    fi
92
97
fi
93
98
cat <<EOF
94
99
}