diff options
author | Christian Hesse | 2015-10-07 23:14:05 +0200 |
---|---|---|
committer | Christian Hesse | 2015-10-07 23:14:05 +0200 |
commit | 32655eeb01783f969af0a30bd952f5fc95c5087e (patch) | |
tree | 220f4575c954c08f1059b9c6fccf7df2578ead14 /grub | |
parent | 6a4061c39ef4a78ece5337939d7e4b22d034198a (diff) | |
download | aur-32655eeb01783f969af0a30bd952f5fc95c5087e.tar.gz |
commit grubinvaders 1.0.0-5
Diffstat (limited to 'grub')
-rw-r--r-- | grub | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -18,8 +18,10 @@ CLASS="--class game" if [ -e ${INVADERS_IMAGE} ] && is_path_readable_by_grub ${INVADERS_IMAGE}; then # image exists, create menu entry echo "Found Invaders image: ${INVADERS_IMAGE}" >&2 - echo "menuentry \"Grub Invaders\" ${CLASS} {" - prepare_grub_to_access_device $(${grub_probe} --target=device ${INVADERS_IMAGE}) | sed -e "s/^/\t/" - echo -e "\tmultiboot $(make_system_path_relative_to_its_root ${INVADERS_IMAGE})" - echo "}" + echo "if [ \"\${grub_platform}\" == \"pc\" ]; then" + echo -e "\tmenuentry \"Grub Invaders\" ${CLASS} {" + prepare_grub_to_access_device $(${grub_probe} --target=device ${INVADERS_IMAGE}) | sed -e "s/^/\t\t/" + echo -e "\t\tmultiboot $(make_system_path_relative_to_its_root ${INVADERS_IMAGE})" + echo -e "\t}" + echo "fi" fi |