#!/bin/bash

HOST_ARCH=$(uname -m)

case "$HOST_ARCH" in
    x86)     HOST_ARCH="32"           ;;
    i?86)    HOST_ARCH="32"           ;;
    ia64)    HOST_ARCH="64"           ;;
    amd64)   HOST_ARCH="64"           ;;
    x86_64)  HOST_ARCH="64"           ;;
    sparc64) HOST_ARCH="64"           ;;
    * )      HOST_ARCH="desconhecido" ;;
esac

if [ $HOST_ARCH = "64" ]; then
   echo "comandos para 64";
elif [ $HOST_ARCH = "32" ]; then
   echo "comandos para 32";
else
   echo "Sistema não suportado";
fi