From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 20:12:55 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 9E57B1065676 for ; Tue, 16 Mar 2010 20:12:55 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from mail-fx0-f215.google.com (mail-fx0-f215.google.com [209.85.220.215]) by mx1.freebsd.org (Postfix) with ESMTP id 31E488FC13 for ; Tue, 16 Mar 2010 20:12:55 +0000 (UTC) Received: by fxm7 with SMTP id 7so361006fxm.3 for ; Tue, 16 Mar 2010 13:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=NXpeeijNK/QcRK9JuM5I6YHWKen4fxv1IbP1vP9DGME=; b=G/vpKMnlMdrdgV7uyfh2w/6BxsvRx0bP0cu/rdJGVUrwRYF5p/W4q8bMQTlJ9OBq42 u+VL7WhSexouRrsEEvuevneG5m5RkWQUHr/HoINtmhwIGIygS+x8K8PjIwu0N+KP/+cc 0DPFOkg69b5hr9J/jTYJKHKuU0+0H/4iCjEXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=gHXPl+6einXE8SOsUaS33YVvLfc3z42rmtAxlSWVO2R/L09r7K5xyzEILCWBWc96R2 GCwdbQUzbU62I6vVs1kiGqlSk0iri27D59zmU5EYXpp45xnCKXQ+/uBNUW3Mk5i7sOY8 Ws02zgDwxvhtPwz+eINnuFo4q7DLC+0CGEemc= MIME-Version: 1.0 Received: by 10.239.137.69 with SMTP id k5mr1088241hbk.97.1268770374168; Tue, 16 Mar 2010 13:12:54 -0700 (PDT) In-Reply-To: <201003161702.o2GH2lIV054685@dc.cis.okstate.edu> References: <201003161702.o2GH2lIV054685@dc.cis.okstate.edu> From: Eitan Adler Date: Tue, 16 Mar 2010 22:12:34 +0200 Message-ID: To: Martin McCormick Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 20:12:55 -0000 > =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. > Either sysctl -n hw.machine_arch or uname -m (which is POSIX compliant)