Skip to content

Instantly share code, notes, and snippets.

View akshayshinde10x's full-sized avatar

Akshay Shinde akshayshinde10x

View GitHub Profile
def check():
datafile=open("/boot/grub2/grub.cfg","r+")
found=False
for line in datafile:
if"Detected boot environment:BIOS"in line:
found=True
break
return found