#!/bin/bash

arch=$(uname -m)
oss=$(getconf LONG_BIT)
version=$(uname -v)

case "$arch" in
    armv7l|armv6l)
        echo "The Board is ${arch} (32bit)"
        ;;
    aarch64)
        echo "The Board is ${arch} (64bit)"
        ;;
    x86_64)
        echo "The Board is ${arch} (64bit)"
        ;;
    i386|i686)
        echo "The Board is ${arch} (32bit)"
        ;;
    *)
        echo "The Board is ${arch} (unknown bitness)"
        ;;
esac


echo "This OS" $version "is a" $oss "Bit System"