From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 17:02:57 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 B23B11065670 for ; Tue, 16 Mar 2010 17:02:57 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.103.93]) by mx1.freebsd.org (Postfix) with ESMTP id 684668FC19 for ; Tue, 16 Mar 2010 17:02:56 +0000 (UTC) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.14.2/8.13.8) with ESMTP id o2GH2lIV054685 for ; Tue, 16 Mar 2010 12:02:52 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201003161702.o2GH2lIV054685@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <54683.1268758967.1@dc.cis.okstate.edu> Date: Tue, 16 Mar 2010 12:02:47 -0500 From: Martin McCormick Subject: 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 17:02:57 -0000 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. Thank you.