Lines 187-193
ninj() { [[ ${type} == "kern" ]] && echo
Link Here
|
187 |
# Starting with linux-2.6.24, the 'x86_64' and 'i386' |
187 |
# Starting with linux-2.6.24, the 'x86_64' and 'i386' |
188 |
# trees have been unified into 'x86'. |
188 |
# trees have been unified into 'x86'. |
189 |
# FreeBSD still uses i386 |
189 |
# FreeBSD still uses i386 |
190 |
if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) || ${host} == *freebsd* ]] ; then |
190 |
# In 2.6.32, this has been changed back. |
|
|
191 |
if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) ]] || [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.32) ]] || ${host} == *freebsd* ]] ; then |
191 |
echo i386 |
192 |
echo i386 |
192 |
else |
193 |
else |
193 |
echo x86 |
194 |
echo x86 |
Lines 228-237
ninj() { [[ ${type} == "kern" ]] && echo
Link Here
|
228 |
;; |
229 |
;; |
229 |
vax*) echo vax;; |
230 |
vax*) echo vax;; |
230 |
x86_64*) |
231 |
x86_64*) |
231 |
# Starting with linux-2.6.24, the 'x86_64' and 'i386' |
232 |
if [[ ${type} == "kern" ]] ; then |
232 |
# trees have been unified into 'x86'. |
233 |
echo x86_64 |
233 |
if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.24) ]] ; then |
|
|
234 |
echo x86 |
235 |
else |
234 |
else |
236 |
ninj x86_64 amd64 |
235 |
ninj x86_64 amd64 |
237 |
fi |
236 |
fi |