#!/bin/bash

# Detect the platform
OS=$(uname -s)

case "$OS" in
    Darwin)
        echo "Running on macOS"
        # Add macOS-specific commands here
        sw_vers
        sysctl -n machdep.cpu.brand_string
        system_profiler SPHardwareDataType SPMemoryDataType
        ;;
    Linux)
        echo "Running on Linux"
        # Add Linux-specific commands here
        cat /sys/firmware/devicetree/base/model;echo
        cat /etc/os-release
	vcgencmd get_config total_mem
	cat /proc/cpuinfo | grep Revision
	echo "Hardware History: https://elinux.org/RPi_HardwareHistory"
	;;
    *)
        echo "Unsupported OS: $OS"
        exit 1
        ;;
esac
