Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

Matthew Seaman m.seaman at black-earth.co.uk
Tue Mar 16 17:09:00 UTC 2010


On 16/03/2010 17:02:47, Martin McCormick 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.

uname -m

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.              7 Priory Courtyard, Flat 3
Black Earth Consulting                       Ramsgate
                                             Kent, CT11 9PW
Free and Open Source Solutions               Tel: +44 (0)1843 580647

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100316/560f5a8f/signature.pgp


More information about the freebsd-questions mailing list