Files
Autodesk-Fusion-360-for-Linux/files/testing-scripts/check-secure-boot-status.sh
2024-09-04 20:21:40 +02:00

20 lines
485 B
Bash

#!/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."
return 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