2018-04-27

Slitaz -- check-uefi.sh


check-uefi.sh 
 

slitaz-rolling-core64

tux@slitaz:~$ uname -a
Linux slitaz 3.16.55-slitaz64 #2 SMP Tue Mar 27 13:04:08 CEST 2018 x86_64 GNU/Linux

tux@slitaz:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/bzImage64 root=/dev/null video=-32 autologin

tux@slitaz:~$ check-uefi.sh
UEFI

tux@slitaz:~$ cat /usr/bin/check-uefi.sh
#!/bin/sh
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

tux@slitaz:~$ ls -l /sys/firmware/efi
total 0
-r--r--r--    1 root     root          4096 Apr 26 01:57 config_table
dr-xr-xr-x    2 root     root             0 Apr 26 01:57 efivars
-r--r--r--    1 root     root          4096 Apr 26 01:57 fw_vendor
-r--r--r--    1 root     root          4096 Apr 26 01:57 runtime
drwxr-xr-x   11 root     root             0 Apr 26 01:57 runtime-map
-r--------    1 root     root          4096 Apr 26 01:57 systab