File: sparc.sh

package info (click to toggle)
base-installer 1.115%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,848 kB
  • ctags: 124
  • sloc: sh: 1,530; ansic: 633; makefile: 51; perl: 50
file content (20 lines) | stat: -rw-r--r-- 480 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
arch_get_kernel_flavour () {
	echo "$MACHINE"
	return 0
}

arch_check_usable_kernel () {
	if echo "$1" | grep -Eq -- "-sparc64(-.*)?$"; then return 0; fi
	return 1
}

arch_get_kernel () {
	imgbase=linux-image

	CPUS=`grep 'ncpus probed' "$CPUINFO" | cut -d: -f2`
	TYPE=`grep '^type' "$CPUINFO" | head -n1 | cut -d: -f2 | sed -e 's/^[[:space:]]//'`
	if [ "$CPUS" -ne 1 ] || [ "$TYPE" = "sun4v" ]; then
		echo "$imgbase-$KERNEL_MAJOR-$1-smp"
	fi
	echo "$imgbase-$KERNEL_MAJOR-$1"
}