File: isinstallable

package info (click to toggle)
grub-installer 1.60%2Bsqueeze3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,372 kB
  • ctags: 25
  • sloc: sh: 1,031; makefile: 2
file content (31 lines) | stat: -rwxr-xr-x 529 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
. /usr/share/debconf/confmodule

log() {
	logger -t grub-installer "$@"
}

ARCH="$(archdetect)"

case $ARCH in
    i386/mac|amd64/mac)
	# Note: depends on partman-efi to load the efivars module!
	if [ -d /sys/firmware/efi ]; then
		log "GRUB not yet usable on Intel-based Macs booted using EFI"
		exit 1
	fi
	;;
    powerpc/chrp_pegasos)
	;;
    powerpc/*)
	log "GRUB not yet usable on PowerPC systems other than Pegasos/Efika"
	exit 1
	;;
esac

db_get grub-installer/skip
if [ "$RET" = true ]; then
	exit 1
fi

exit 0