close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
lgromero-new-oglive
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # Detects utility (hw vendor recovery) partitions. |
|---|
| 3 | |
|---|
| 4 | . /usr/share/os-prober/common.sh |
|---|
| 5 | |
|---|
| 6 | partition="$1" |
|---|
| 7 | mpoint="$2" |
|---|
| 8 | type="$3" |
|---|
| 9 | |
|---|
| 10 | # Weed out stuff that doesn't apply to us |
|---|
| 11 | case "$type" in |
|---|
| 12 | vfat) debug "$1 is a FAT32 partition" ;; |
|---|
| 13 | msdos) debug "$1 is a FAT16 partition" ;; |
|---|
| 14 | fat) debug "$1 is a FAT partition (mounted by GRUB)" ;; |
|---|
| 15 | *) debug "$1 is not a FAT partition: exiting"; exit 1 ;; |
|---|
| 16 | esac |
|---|
| 17 | |
|---|
| 18 | # Dell Utility partitions have partition type 0xde, but no idea how to |
|---|
| 19 | # cleanly detect that from shell |
|---|
| 20 | if item_in_dir -q dellbio.bin "$2" && \ |
|---|
| 21 | (item_in_dir -q delldiag.exe "$2" || item_in_dir -q delldiag.com "$2"); then |
|---|
| 22 | long="Dell Utility Partition" |
|---|
| 23 | short=DellUtility |
|---|
| 24 | elif item_in_dir -q f11.sys "$2"; then |
|---|
| 25 | long="Acronis Secure Zone" |
|---|
| 26 | short=AcroneZone |
|---|
| 27 | else |
|---|
| 28 | exit 1 |
|---|
| 29 | fi |
|---|
| 30 | |
|---|
| 31 | label="$(count_next_label "$short")" |
|---|
| 32 | result "${partition}:${long}:${label}:chain" |
|---|
| 33 | exit 0 |
|---|
Note: See
TracBrowser
for help on using the repository browser.
Download in other formats: