Update motd.sh and .wget-hsts
This commit is contained in:
parent
2f536003f8
commit
2af457ba22
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue