From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 17:10:28 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFE3A1065670 for ; Tue, 16 Mar 2010 17:10:28 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228]) by mx1.freebsd.org (Postfix) with ESMTP id 41B138FC38 for ; Tue, 16 Mar 2010 17:10:27 +0000 (UTC) Received: by bwz28 with SMTP id 28so165961bwz.14 for ; Tue, 16 Mar 2010 10:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=lW7UYCg0+vdwzugV3omgup4UFxQFuCxmG9wHfmvNobU=; b=L+ktIap+uJctfurKEoN56X9hFdVKdkDJ4DRFFafplGdDLLl+UcEhFyGeZIYOXuTky2 yLLj2mn845iJ1lB1sPpiGRDqOcy7Av4hACEqx2YZluxzXfbVBiVqMml1SIiARBTaJDAj beXLz8wr3ogKCRisUCOj7y407hbjwP7AzuNDY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; b=UHF/w6WQwryfDUUCBUwmqQSCSPtQVSQqS2Q/2YqtcTo+WYYprvzQOBrC6cMps5zAd3 rdxfd3C3kjR/gmrVEBmIQ4H4eEjAkOqt41DJBzYftIPohP/Hla9fYdmOk66k/aPEVpg6 nomfRzThK/M6RX38vwXWmwbdn85hmyd+lxoeU= MIME-Version: 1.0 Received: by 10.204.35.139 with SMTP id p11mr65372bkd.178.1268759426697; Tue, 16 Mar 2010 10:10:26 -0700 (PDT) In-Reply-To: <201003161702.o2GH2lIV054685@dc.cis.okstate.edu> References: <201003161702.o2GH2lIV054685@dc.cis.okstate.edu> From: Chris Rees Date: Tue, 16 Mar 2010 17:10:04 +0000 Message-ID: To: freebsd-questions@freebsd.org, Martin McCormick Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 17:10:28 -0000 On 16 March 2010 17:02, Martin McCormick wrote: > =A0 =A0 =A0 =A0Is there a FreeBSD command similar to the Linux arch > command? > > =A0 =A0 =A0 =A0I 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@amnesiac]~% sysctl hw.machine_arch hw.machine_arch: i386 [chris@amnesiac]~% > Thank you. You're welcome. Chris