Skip to content

Commit

Permalink
uname -o -> uname -s
Browse files Browse the repository at this point in the history
  • Loading branch information
pdostal committed Oct 17, 2023
1 parent 2d7a3ca commit 3b347c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion motd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [[ ${OSTYPE,,} =~ ^linux ]]; then
diskUsage=$(df -h /| awk '$NF=="/"{printf "%s", $5}')
memUsage=$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')
osRelease=$(test -f /etc/os-release && source /etc/os-release && echo -n " ${NAME} ${VERSION}")
echo "$(uname -o)${osRelease} $(uname -r | cut -d'.' -f1,2) $(uname -p) - Up ${upDays} days"
echo "$(uname -s)${osRelease} $(uname -r | cut -d'.' -f1,2) $(uname -p) - Up ${upDays} days"
echo "Load: ${loadAvg} Disk: ${diskUsage} Memory: ${memUsage}"
fi

Expand Down

0 comments on commit 3b347c7

Please sign in to comment.