repo.or.cz
/
pkg-k5-afs_openafs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update NEWS entries to reflect new version
[pkg-k5-afs_openafs.git]
/
debian
/
module
/
sysname
blob
b686ae88f0bd9aa46a95968db23dd653629640a8
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:-`uname -m`}
in
11
alpha
)
12
case
$KVERS
in
13
2.2
*)
14
echo
alpha_linux_22
15
;;
16
2.4
*)
17
echo
alpha_linux_24
18
;;
19
2.6
*)
20
echo
alpha_linux_26
21
;;
22
esac
23
;;
24
arm|armel|armhf|armv5tel
)
25
case
$KVERS
in
26
2.4
*)
27
echo
arm_linux24
28
;;
29
2.6
*)
30
echo
arm_linux26
31
;;
32
esac
33
;;
34
i
[
3456
]
86
)
35
case
$KVERS
in
36
2.2
*)
37
echo
i386_linux22
38
;;
39
2.4
*)
40
echo
i386_linux24
41
;;
42
2.6
*)
43
echo
i386_linux26
44
;;
45
esac
46
;;
47
ia64
)
48
case
$KVERS
in
49
2.4
*)
50
echo
ia64_linux24
51
;;
52
2.6
*)
53
echo
ia64_linux26
54
;;
55
esac
56
;;
57
ppc
)
58
case
$KVERS
in
59
2.2
*)
60
echo
ppc_linux22
61
;;
62
2.4
*)
63
echo
ppc_linux24
64
;;
65
2.6
)
66
echo
ppc_linux26
67
;;
68
esac
69
;;
70
ppc64
)
71
case
$KVERS
in
72
2.4
*)
73
echo
ppc64_linux24
74
;;
75
2.6
*)
76
echo
ppc64_linux26
77
;;
78
esac
79
;;
80
s390
)
81
case
$KVERS
in
82
2.4
*)
83
echo
s390_linux24
84
;;
85
2.6
*)
86
echo
s390_linux26
87
;;
88
esac
89
;;
90
s390x
)
91
case
$KVERS
in
92
2.4
*)
93
echo
s390x_linux24
94
;;
95
2.6
*)
96
echo
s390x_linux26
97
;;
98
esac
99
;;
100
sparc
)
101
case
$KVERS
in
102
2.2
*)
103
echo
sparc_linux22
104
;;
105
2.4
*)
106
echo
sparc_linux24
107
;;
108
esac
109
;;
110
sparc64
)
111
case
$KVERS
in
112
2.2
*)
113
echo
sparc64_linux22
114
;;
115
2.4
*)
116
echo
sparc64_linux24
117
;;
118
2.6
*)
119
echo
sparc64_linux26
120
;;
121
esac
122
;;
123
x86_64
)
124
case
$KVERS
in
125
2.4
*)
126
echo
amd64_linux24
127
;;
128
2.6
*)
129
echo
amd64_linux26
130
;;
131
esac
132
;;
133
*)
134
echo
"ERROR: unsupported architecture"
>&
2
135
echo
UNKNOWN
136
exit
1
137
esac