10elilo 408 B

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