Update motd.sh and .wget-hsts

This commit is contained in:
mrjohndowe 2021-11-30 10:04:46 -07:00
parent 2f536003f8
commit 2af457ba22
2 changed files with 36 additions and 0 deletions

30
.doweFiles/motd.sh Normal file
View File

@ -0,0 +1,30 @@
# Message Of The Day
# IP Address
# IP=`ifconfig wlan0 | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1`
IP=`hostname -I`;
EXT_IP=`wget -q -O - http://icanhazip.com/ | tail`;
RASPI_MODEL=`dmesg | grep "Machine model:" | cut -d ":" -f 2`;
welcome() {
echo "Bonjour!";
}
# Identify Pi version
# http://elinux.org/RPi_HardwareHistory
version() {
echo "This is a" ${RASPI_MODEL};
}
# Show internal and external IP address
ip() {
echo ${IP};
echo ${EXT_IP};
}
# Execute
welcome
version
ip

6
.wget-hsts Normal file
View File

@ -0,0 +1,6 @@
# HSTS 1.0 Known Hosts database for GNU Wget.
# Edit at your own risk.
# <hostname> <port> <incl. subdomains> <created> <max-age>
scm.genesisrage.net 0 0 1638278944 15768000
github.com 0 1 1638276879 31536000
codeload.github.com 0 0 1638276880 31536000