summaryrefslogtreecommitdiff
path: root/backend/modules
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2014-05-09 13:20:09 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2014-05-09 13:20:09 +0200
commitb490e5fd8b6101dc35a194d551a27a08585c6d6c (patch)
tree7a8680287de09343fe05e8de8e019c7beb3524fb /backend/modules
parent513cbc26b177f52fa83d981a18cb7c3115351748 (diff)
downloadacritoxinstaller-b490e5fd8b6101dc35a194d551a27a08585c6d6c.zip
acritoxinstaller-b490e5fd8b6101dc35a194d551a27a08585c6d6c.tar.gz
Apple detection for Grub
Diffstat (limited to 'backend/modules')
-rw-r--r--backend/modules/bootloader3
1 files changed, 1 insertions, 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"