Change message of the day
This commit is contained in:
14
templates/etc/update-motd.d/09-ipaddresses
Normal file
14
templates/etc/update-motd.d/09-ipaddresses
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
###############################################################
|
||||
# Script : 09-ipaddresses
|
||||
# Author : Andre
|
||||
# Date : 16/07/2024
|
||||
# Description: displays ipv4 and ipv6 addresses
|
||||
# Args : none
|
||||
###############################################################
|
||||
|
||||
source /etc/update-motd.d/colors.txt
|
||||
|
||||
echo -e " ${TITLE_COLOR}IPv4 addresses......:${NC} ${TEXT_COLOR}$(ip -h -br -c -4 a | awk '{ printf " %s:%s", $1, $3;}')"
|
||||
echo -e " ${TITLE_COLOR}IPv6 addresses......:${NC} ${TEXT_COLOR}$(ip -h -br -c -6 a | awk '{ printf " %s:%s", $1, $3;}')"
|
||||
Reference in New Issue
Block a user