Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?
Chris Rees
utisoft at googlemail.com
Tue Mar 16 17:10:28 UTC 2010
On 16 March 2010 17:02, Martin McCormick <martin at dc.cis.okstate.edu> wrote:
> Is there a FreeBSD command similar to the Linux arch
> command?
>
> I have built a fairly decent Bourne shell script to run
> just after installing mfsbsd on a target system. It figures out
> the likely boot drive, formats it and then begins to build a
> FreeBSD system on it. The script could intelligently ask for the
> 64-bit or 32-bit trees if it could determine whether it was
> running on the i86 or 64-bit system.
[chris at amnesiac]~% sysctl hw.machine_arch
hw.machine_arch: i386
[chris at amnesiac]~%
> Thank you.
You're welcome.
Chris
More information about the freebsd-questions
mailing list