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 Microsoft bootloader on a EFI System Partition |
|---|
| 3 | |
|---|
| 4 | . /usr/share/os-prober/common.sh |
|---|
| 5 | |
|---|
| 6 | efi="$1" |
|---|
| 7 | |
|---|
| 8 | found= |
|---|
| 9 | for microsoft in $(item_in_dir microsoft "$efi"); do |
|---|
| 10 | for boot in $(item_in_dir boot "$efi/$microsoft"); do |
|---|
| 11 | bcd=$(item_in_dir bcd "$efi/$microsoft/$boot") |
|---|
| 12 | bootmgfw=$(item_in_dir bootmgfw.efi "$efi/$microsoft/$boot") |
|---|
| 13 | if [ -n "$bcd" -a -n "$bootmgfw" ]; then |
|---|
| 14 | long="Windows Boot Manager" |
|---|
| 15 | short=Windows |
|---|
| 16 | path="$microsoft/$boot/$bootmgfw" |
|---|
| 17 | found=true |
|---|
| 18 | break |
|---|
| 19 | fi |
|---|
| 20 | done |
|---|
| 21 | done |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | if [ -n "$found" ]; then |
|---|
| 25 | label="$(count_next_label "$short")" |
|---|
| 26 | result "${path}:${long}:${label}" |
|---|
| 27 | fi |
|---|
| 28 | exit 0 |
|---|
Note: See
TracBrowser
for help on using the repository browser.
Download in other formats: