Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / debian / module / sysname
blobb686ae88f0bd9aa46a95968db23dd653629640a8
1 #!/bin/sh
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
10 case ${ARCH:-`uname -m`} in
11 alpha)
12 case $KVERS in
13 2.2*)
14 echo alpha_linux_22
16 2.4*)
17 echo alpha_linux_24
19 2.6*)
20 echo alpha_linux_26
22 esac
24 arm|armel|armhf|armv5tel)
25 case $KVERS in
26 2.4*)
27 echo arm_linux24
29 2.6*)
30 echo arm_linux26
32 esac
34 i[3456]86)
35 case $KVERS in
36 2.2*)
37 echo i386_linux22
39 2.4*)
40 echo i386_linux24
42 2.6*)
43 echo i386_linux26
45 esac
47 ia64)
48 case $KVERS in
49 2.4*)
50 echo ia64_linux24
52 2.6*)
53 echo ia64_linux26
55 esac
57 ppc)
58 case $KVERS in
59 2.2*)
60 echo ppc_linux22
62 2.4*)
63 echo ppc_linux24
65 2.6)
66 echo ppc_linux26
68 esac
70 ppc64)
71 case $KVERS in
72 2.4*)
73 echo ppc64_linux24
75 2.6*)
76 echo ppc64_linux26
78 esac
80 s390)
81 case $KVERS in
82 2.4*)
83 echo s390_linux24
85 2.6*)
86 echo s390_linux26
88 esac
90 s390x)
91 case $KVERS in
92 2.4*)
93 echo s390x_linux24
95 2.6*)
96 echo s390x_linux26
98 esac
100 sparc)
101 case $KVERS in
102 2.2*)
103 echo sparc_linux22
105 2.4*)
106 echo sparc_linux24
108 esac
110 sparc64)
111 case $KVERS in
112 2.2*)
113 echo sparc64_linux22
115 2.4*)
116 echo sparc64_linux24
118 2.6*)
119 echo sparc64_linux26
121 esac
123 x86_64)
124 case $KVERS in
125 2.4*)
126 echo amd64_linux24
128 2.6*)
129 echo amd64_linux26
131 esac
134 echo "ERROR: unsupported architecture" >&2
135 echo UNKNOWN
136 exit 1
137 esac