File: config

package info (click to toggle)
mkvmlinuz 36
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 404 kB
  • sloc: ansic: 2,825; sh: 471; asm: 283; makefile: 75
file content (38 lines) | stat: -rwxr-xr-x 1,008 bytes parent folder | download | duplicates (5)
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
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

case $(grep ^machine /proc/cpuinfo) in
    *PReP*Blackhawk*) arch=ppcbug ;;
    *PReP*) arch=prep ;;
    *CHRP*Pegasos*|*EFIKA*CHRP*) arch=chrp_pegasos ;;
    *CHRP*) arch=chrp ;;
    *Amiga*) arch=apus ;;
    *iSeries*) arch=iseries ;;
    *)
	case $(grep ^pmac-generation /proc/cpuinfo) in
	    *NewWorld) arch=pmac_newworld ;;
	    *OldWorld) arch=pmac_oldworld ;;
	    *NuBus) arch=pmac_nubus ;;
	    *) arch=unknown ;;
	esac
	;;
esac

# List of bootloader per subarch.
case $arch in
    chrp|pmac_newworld) bootloaders="yaboot, mkvmlinuz" ;;
    pmac_oldworld) bootloaders="quik, mkvmlinuz" ;;
    apus|ppcbug|prep|chrp_pegasos) bootloaders="mkvmlinuz" ;;
    *) bootloaders="unknown" ;;
esac

# If there is more than one bootloader present, ask the user
# at medium priority

db_subst mkvmlinuz/bootloaders choices "$bootloaders"
db_subst mkvmlinuz/bootloaders default "${bootloaders%, *}"
db_input medium mkvmlinuz/bootloaders || true
db_go || true