Search:
GitHub Login
Preferences
My Notifications
Tickets
Wiki
GitHub
Timeline
Roadmap
Ticket Reports
Search
Context Navigation
Back to Ticket #45794
Ticket #45794
: get_arch.sh
File get_arch.sh,
214 bytes
(added by
fhgwright (Fred Wright)
,
10 years ago
)
Script to get correct machine architecture
Line
1
#!/bin/sh
2
3
ARCH
=
$(
sysctl -n hw.machine
)
4
5
if
[
"
$ARCH
"
==
"Power Macintosh"
]
;
then
6
IS64BIT
=
$(
sysctl -n hw.cpu64bit_capable
)
7
if
[
"
$IS64BIT
"
==
"1"
]
;
then
8
ARCH
=
ppc64
9
else
10
ARCH
=
ppc
11
fi
12
fi
13
14
echo
$ARCH
Download in other formats:
Original Format