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