From b490e5fd8b6101dc35a194d551a27a08585c6d6c Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Fri, 9 May 2014 13:20:09 +0200 Subject: Apple detection for Grub --- backend/modules/bootloader | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/modules/bootloader b/backend/modules/bootloader index 99d378d..ac5185b 100644 --- a/backend/modules/bootloader +++ b/backend/modules/bootloader @@ -83,8 +83,7 @@ function install_grub() rm -f $TARGET/boot/vmlinuz $TARGET/boot/System.map $TARGET/boot/initrd.img apple=0 - # TODO Apple detection, e.g. using dmidecode - false && apple=1 + dmidecode -s system-manufacturer | grep -q "Apple Inc." && apple=1 # install grub mkdir -p "$TARGET/boot/grub" -- cgit v1.0