~ubuntu-branches/ubuntu/karmic/openafs/karmic-updates

« back to all changes in this revision

Viewing changes to debian/kern-sysname

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-09-22 19:07:02 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080922190702-59m13d7kn6gkw32d
Tags: 1.4.7.dfsg1-6
* Apply upstream patch to free /proc entries in the correct order.
  Thanks, Marc Dionne.  (Closes: #493914)
* Apply upstream deltas to support 2.6.27 kernels and to stop using
  COMMON_KERN_CFLAGS for all 2.6 kernels uniformly, which fixes
  problems on amd64 with newer kernels.  Thanks, Björn Torkelsson.
  (LP: #267504)
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #493120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
if [ x"$KVERS" = x ] ; then
4
 
    echo "ERROR: no kernel version" >&2
5
 
    echo "  ($KSRC/include/linux/version.h not found?)" >&2
6
 
    echo UNKNOWN
7
 
    exit 1
8
 
fi
9
 
 
10
 
case `arch` in
11
 
i[3456]86)
12
 
    case $KVERS in
13
 
    2.2*)
14
 
        echo i386_linux22
15
 
        ;;
16
 
    2.4*)
17
 
        echo i386_linux24
18
 
        ;;
19
 
    2.6*)
20
 
        echo i386_linux26
21
 
        ;;
22
 
    esac
23
 
    ;;
24
 
x86_64)
25
 
    case $KVERS in
26
 
    2.4*)
27
 
        echo amd64_linux24
28
 
        ;;
29
 
    2.6*)
30
 
        echo amd64_linux26
31
 
        ;;
32
 
    esac
33
 
    ;;
34
 
ia64)
35
 
    echo ia64_linux24
36
 
    ;;
37
 
alpha)
38
 
    case $KVERS in
39
 
    2.2*)
40
 
        echo alpha_linux_22
41
 
        ;;
42
 
    2.4*)
43
 
        echo alpha_linux_24
44
 
        ;;
45
 
    esac
46
 
    ;;
47
 
sparc)
48
 
    case $KVERS in
49
 
    2.2*)
50
 
        echo sparc_linux22
51
 
        ;;
52
 
    2.4*)
53
 
        echo sparc_linux24
54
 
        ;;
55
 
    esac
56
 
    ;;
57
 
sparc64)
58
 
    case $KVERS in
59
 
    2.2*)
60
 
        echo sparc64_linux22
61
 
        ;;
62
 
    2.4*)
63
 
        echo sparc64_linux24
64
 
        ;;
65
 
    esac
66
 
    ;;
67
 
ppc)
68
 
    case $KVERS in
69
 
    2.2*)
70
 
        echo ppc_linux22
71
 
        ;;
72
 
    2.4*)
73
 
        echo ppc_linux24
74
 
        ;;
75
 
    2.6)
76
 
        echo ppc_linux26
77
 
        ;;
78
 
    esac
79
 
    ;;
80
 
ppc64)
81
 
    case $KVERS in
82
 
    2.4*)
83
 
        echo ppc64_linux24
84
 
        ;;
85
 
    2.6*)
86
 
        echo ppc64_linux26
87
 
        ;;
88
 
    esac
89
 
    ;;
90
 
s390)
91
 
    echo s390_linux24
92
 
    ;;
93
 
*)
94
 
    echo "ERROR: unsupported architecture" >&2
95
 
    echo UNKNOWN
96
 
    exit 1
97
 
esac