Skip to content

Instantly share code, notes, and snippets.

@techdad
techdad / pi-motd.sh
Last active October 19, 2016 07:57
Create a nice MOTD for a Raspberry Pi (my version)
#!/bin/sh
if [ -z ${1} ]; then
echo "Usage: ${0} {location of motd}"
exit 1
fi
hostn=`hostname`
ip=`ip addr show scope global | grep inet | cut -d' ' -f6`
#ip=`ip addr show scope global | grep inet | cut -d' ' -f6 | cut -d/ -f1`