~idefix/ubuntu/trusty/os-prober/HaikuPM

« back to all changes in this revision

Viewing changes to os-probes/mounted/x86/efi/10elilo

  • Committer: Package Import Robot
  • Author(s): Steve McIntyre, Steve McIntyre
  • Date: 2013-04-28 16:01:50 UTC
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: package-import@ubuntu.com-20130428160150-elvesqryav4sg7pj
Tags: 1.58
[ Steve McIntyre ]
* add UEFI support, patch from Andrey Borzenkov:
  + skip legacy MS loader detection on UEFI platform
  + add framework for searching EFI System Partition
  + add scripts that detect Microsoft bootloader and ELILO.
* Add myself to uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Detects ELILO bootloader on a EFI System Partition
 
3
 
 
4
. /usr/share/os-prober/common.sh
 
5
 
 
6
efi="$1"
 
7
 
 
8
found=
 
9
 
 
10
elilo=`find $1 -name "elilo.efi"`
 
11
if [ -n "$elilo" ]; then
 
12
        bdir=`dirname $elilo`
 
13
        bdir=`basename $bdir`
 
14
        long="ELILO Boot Manager"
 
15
        short="ELILO"
 
16
        path=${bdir}/elilo.efi
 
17
        found=true
 
18
fi  
 
19
 
 
20
if [ -n "$found" ]; then
 
21
        label="$(count_next_label "$short")"
 
22
        result "${path}:${long}:${label}"
 
23
fi
 
24
exit 0