There is: if [ -d /sys/firmware/efi ]; then

There is:
if [ -d /sys/firmware/efi ]; then
Was this page helpful?