webconsole3
Last change
on this file since 38788bf was
1236d17,
checked in by jm.bardallo <juanmanuel.bardallo@…>, 7 years ago
|
añadidos nuevamente los ficheros de opengnsys del branch devel, se habían quitado por error
|
-
Property mode set to
100644
|
File size:
863 bytes
|
Rev | Line | |
---|
[1236d17] | 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.