File: grub

package info (click to toggle)
invaders 1.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 176 kB
  • ctags: 192
  • sloc: ansic: 678; sh: 70; makefile: 39; asm: 28
file content (15 lines) | stat: -rw-r--r-- 384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash -e

if test -e /boot/invaders ; then
  source /usr/lib/grub/update-grub_lib
  INVADERSPATH=$( make_system_path_relative_to_its_root "/boot/invaders" )
  echo "Found GRUB Invaders image: /boot/invaders" >&2
  cat << EOF
menuentry "GRUB Invaders" {
EOF
  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/g"
  cat << EOF
	multiboot	${INVADERSPATH}
}
EOF
fi