File: isinstallable

package info (click to toggle)
lilo-installer 1.20etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 704 kB
  • ctags: 7
  • sloc: sh: 272; makefile: 22
file content (20 lines) | stat: -rwxr-xr-x 419 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

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

MANUFACTURER="$(dmidecode -s system-manufacturer)"
case $MANUFACTURER in
    Apple*)
	# LILO stands a better chance of working under Boot Camp,
	# where /sys/firmware/efi doesn't exist.
	# Note: depends on partman-efi to load the efivars module!
	if [ -d /sys/firmware/efi ]; then
		log "LILO not usable on Intel-based Macs; use elilo"
		exit 1
	fi
	;;
esac

exit 0