#!/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
IyEvYmluL2Jhc2gKCkhPU1RfQVJDSD0kKHVuYW1lIC1tKQoKY2FzZSAiJEhPU1RfQVJDSCIgaW4KICAgIHg4NikgICAgIEhPU1RfQVJDSD0iMzIiICAgICAgICAgICA7OwogICAgaT84NikgICAgSE9TVF9BUkNIPSIzMiIgICAgICAgICAgIDs7CiAgICBpYTY0KSAgICBIT1NUX0FSQ0g9IjY0IiAgICAgICAgICAgOzsKICAgIGFtZDY0KSAgIEhPU1RfQVJDSD0iNjQiICAgICAgICAgICA7OwogICAgeDg2XzY0KSAgSE9TVF9BUkNIPSI2NCIgICAgICAgICAgIDs7CiAgICBzcGFyYzY0KSBIT1NUX0FSQ0g9IjY0IiAgICAgICAgICAgOzsKICAgICogKSAgICAgIEhPU1RfQVJDSD0iZGVzY29uaGVjaWRvIiA7Owplc2FjCgppZiBbICRIT1NUX0FSQ0ggPSAiNjQiIF07IHRoZW4KICAgZWNobyAiY29tYW5kb3MgcGFyYSA2NCI7CmVsaWYgWyAkSE9TVF9BUkNIID0gIjMyIiBdOyB0aGVuCiAgIGVjaG8gImNvbWFuZG9zIHBhcmEgMzIiOwplbHNlCiAgIGVjaG8gIlNpc3RlbWEgbsOjbyBzdXBvcnRhZG8iOwpmaQ==