Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
libexec
/
os-probes
/
mounted
/
efi
Upload
4 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
10elilo
408 B
-rwxr-xr-x
2021-10-13 08:54:49
Edit
Del
20microsoft
616 B
-rwxr-xr-x
2021-10-13 08:54:49
Edit
Del
Editing: 20microsoft
(616 B)
Path: /usr/libexec/os-probes/mounted/efi/20microsoft
Back
#!/bin/sh # Detects Microsoft bootloader on a EFI System Partition . /usr/share/os-prober/common.sh efi="$1" found= for microsoft in $(item_in_dir microsoft "$efi"); do for boot in $(item_in_dir boot "$efi/$microsoft"); do bcd=$(item_in_dir bcd "$efi/$microsoft/$boot") bootmgfw=$(item_in_dir bootmgfw.efi "$efi/$microsoft/$boot") if [ -n "$bcd" -a -n "$bootmgfw" ]; then long="Windows Boot Manager" short=Windows path="$microsoft/$boot/$bootmgfw" found=true break fi done done if [ -n "$found" ]; then label="$(count_next_label "$short")" result "${path}:${long}:${label}" fi exit 0