lgromero-new-oglivemain
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | . /usr/share/os-prober/common.sh |
---|
4 | |
---|
5 | partition="$1" |
---|
6 | mpoint="$2" |
---|
7 | type="$3" |
---|
8 | |
---|
9 | # Weed out stuff that doesn't apply to us |
---|
10 | case "$type" in |
---|
11 | vfat) debug "$1 is a FAT32 partition" ;; |
---|
12 | msdos) debug "$1 is a FAT16 partition" ;; |
---|
13 | fat) debug "$1 is a FAT partition (mounted by GRUB)" ;; |
---|
14 | *) debug "$1 is not a FAT partition: exiting"; exit 1 ;; |
---|
15 | esac |
---|
16 | |
---|
17 | if item_in_dir -q kernel.sys "$2" && item_in_dir -q command.com "$2"; then |
---|
18 | label="$(count_next_label FreeDOS)" |
---|
19 | result "$1:FreeDOS:$label:chain" |
---|
20 | exit 0 |
---|
21 | else |
---|
22 | exit 1 |
---|
23 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.