Write a program in Python/C++ to test that computer is booted with Legacy Boot ROMBIOS or UEFI.

boot.py

import os

if(os.path.exists("/boot/efi")):
    print "System is booted with UEFI"

else:
    print "System is booted with lagecy boot"

Post a Comment

Previous Post Next Post