The current version of 60-misc now uses this code if [ -d /sys/firmware/efi ]; then echo GRUB_EFI elif ifclass -o I386 AMD64 ; then echo GRUB_PC fi -- regards Thomas