#!/bin/bash
# desc: Nos informa de si esta habilitado/deshabilitado el SecureBoot
ESTADO="$(mokutil --sb-state)"
echo "${ESTADO}" >&2
## Estasdos posibles:
# EFI variables are not supported on this system #> Cuando no soporta EFI
# SecureBoot enabled
# SecureBoot disabled
[[ "${ESTADO}" =~ enabled ]] &&
    exit 1 ||
    exit 0
