File: isinstallable

package info (click to toggle)
elilo-installer 1.28
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 536 kB
  • sloc: sh: 129; makefile: 2
file content (24 lines) | stat: -rwxr-xr-x 452 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
set -e

ARCH="$(archdetect)"

case $ARCH in
    i386/mac|amd64/mac)
	# x86-based Apple systems use elilo, but only if EFI is available
	# (not booting in BIOS compatibility mode).
	# Note: depends on partman-efi to load the efivars module!
	if [ -d /sys/firmware/efi ]; then
		exit 0
	else
		exit 1
	fi
	;;
    i386/*|amd64/*)
	# Everyone else on x86 should use a different boot loader.
	exit 1
	;;
esac

# All ia64 systems use elilo.
exit 0