80minix 431 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. . /usr/share/os-prober/common.sh
  4. partition="$1"
  5. dir="$2"
  6. type="$3"
  7. # Weed out stuff that doesn't apply to us
  8. case "$type" in
  9. minix|minix2|ext2) ;;
  10. *) exit 1 ;;
  11. esac
  12. if [ -f "$dir/minix" ] || [ -e "$dir/boot/image_big" ]; then
  13. if [ -e "$dir/boot/image_latest" ]; then
  14. boot="minix"
  15. else
  16. boot="chain"
  17. fi
  18. label="$(count_next_label Minix)"
  19. result "$partition:Minix:$label:$boot"
  20. exit 0
  21. else
  22. exit 1
  23. fi