isalist.sh revision 363
363N/A#!/bin/ksh93
363N/A#
363N/A# CDDL HEADER START
363N/A#
363N/A# The contents of this file are subject to the terms of the
363N/A# Common Development and Distribution License (the "License").
363N/A# You may not use this file except in compliance with the License.
363N/A#
363N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
363N/A# or http://www.opensolaris.org/os/licensing.
363N/A# See the License for the specific language governing permissions
363N/A# and limitations under the License.
363N/A#
363N/A# When distributing Covered Code, include this CDDL HEADER in each
363N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
363N/A# If applicable, add the following below this CDDL HEADER, with the
363N/A# fields enclosed by brackets "[]" replaced with your own identifying
363N/A# information: Portions Copyright [yyyy] [name of copyright owner]
363N/A#
363N/A# CDDL HEADER END
363N/A#
363N/A
363N/A#
363N/A# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
363N/A#
363N/A
363N/A# A simple isalist replacement which pretends to be 32bit even when running
363N/A# 64bit.
363N/A
363N/AUNAME_M=$(uname -m)
363N/A
363N/Acase $UNAME_M in
363N/A sun4[uv])
363N/A echo "sparcv8"
363N/A ;;
363N/A i86pc)
363N/A echo "i386"
363N/A ;;
363N/A *)
363N/A echo "unknown"
363N/A ;;
363N/Aesac
363N/A