File: armel.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 (42 lines) | stat: -rw-r--r-- 771 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
arch_get_kernel_flavour () {
	case "$SUBARCH" in
		iop32x|iop33x|ixp4xx)
			echo "$SUBARCH"
			return 0
		;;
		# NOTE: the following kernel is not in Debian (sarge), but
		# makes it easier to offer unofficial support from a private
		# apt-archive.
		ads)
			echo "ads"
			return 0
		;;
		*)
			warning "Unknown $ARCH subarchitecture '$SUBARCH'."
			return 1
		;;
	esac
}

arch_check_usable_kernel () {
	# Subarchitecture must match exactly.
	if expr "$1" : ".*-$2\$" >/dev/null; then return 0; fi
	return 1
}

arch_get_kernel () {
	case "$KERNEL_MAJOR" in
		2.4)
			echo "kernel-image-$KERNEL_VERSION-$1"
			;;
		*)
			case "$1" in
				bast)
					echo "linux-image-$KERNEL_MAJOR-s3c2410"
					;;
				*)
					echo "linux-image-$KERNEL_MAJOR-$1"
					;;
			esac
		esac
}