File: ia64.sh

package info (click to toggle)
base-installer 1.76
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 2,204 kB
  • ctags: 109
  • sloc: sh: 1,466; ansic: 380; makefile: 69; perl: 50
file content (22 lines) | stat: -rw-r--r-- 500 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
21
22
arch_get_kernel_flavour () {
	if grep '^features' "$CPUINFO" | grep -q branchlong; then
		echo mckinley
	else
		echo itanium
	fi
	return 0
}

arch_check_usable_kernel () {
	if expr "$1" : '.*-itanium.*' >/dev/null; then return 0; fi
	if [ "$2" = itanium ]; then return 1; fi
	if expr "$1" : '.*-mckinley.*' >/dev/null; then return 0; fi

	# default to usable in case of strangeness
	warning "Unknown kernel usability: $1 / $2"
	return 0
}

arch_get_kernel () {
	echo "linux-image-$KERNEL_MAJOR-$1"
}