#!/bin/bash

get_arch() {
    echo "uname -m:"
    uname -m
    echo "arch:"
    arch
}

get_sn() {
    echo "get Serial Number test"

    //system_profiler SPHardwareDataType | grep "Serial Number" | awk -F: '{ print $2 }'
	ioreg -l | awk '/IOPlatformSerialNumber/{print substr($4,2,length($4) -2)}'
}

echo "-- get arch test --"
get_arch

echo "-- mac test --"
get_sn
