Files
Autodesk-Fusion-360-for-Linux/files/testing-scripts/check-secure-boot-status.sh
2024-09-22 18:19:19 +05:30

20 lines
483 B
Bash
Executable File

#!/bin/bash
# Function to check if Secure Boot is activated
check_secure_boot() {
if ! command -v mokutil &> /dev/null; then
echo "mokutil command not found. Please install it to check Secure Boot status."
exit 1
fi
# Check if Secure Boot is enabled
if mokutil --sb-state | grep -q 'Secure Boot enabled'; then
echo "Secure Boot is enabled."
else
echo "Secure Boot is not enabled."
fi
}
# Call the function
check_secure_boot