dotfiles/.bin/OLD/cv_motd
2024-02-14 07:55:58 +01:00

25 lines
580 B
Bash
Executable File

#!/bin/sh
OS=$(uname -s)
OSVER=$(uname -r)
OSARCH=$(uname -m)
CPUS=$(sysctl -n hw.ncpufound)
CPUMODEL=$(sysctl -n hw.model)
MEM=$(printf "$(sysctl -n hw.physmem)/1024/1024\n" | bc)
printf '%s\n' \
' ___ _____ ____ ____ _ _ _____ ____ ____
/ __)( _ )( _ \( ___)( \/ )( _ )(_ _)( _ \
( (__ )(_)( )(_) ))__) \ / )(_)( _)(_ )(_) )
\___)(_____)(____/(____) \/ (_____)(____)(____/
'
printf " OS: %s" "$OS"
printf " Version: %s" "$OSVER"
printf " Architecture: %s\n" "$OSARCH"
printf " CPU: %s\n" "${CPUS}x $CPUMODEL"
printf " RAM: %s\n\n" "${MEM}MB"