Initial commit
This commit is contained in:
19
templates/etc/update-motd.d/19-ipaddresses
Normal file
19
templates/etc/update-motd.d/19-ipaddresses
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
###############################################################
|
||||
# Script : 19-ipaddresses
|
||||
# Author : Andre
|
||||
# Date : 16/07/2024
|
||||
# Description: displays ipv4 and ipv6 addresses
|
||||
# Args : none
|
||||
###############################################################
|
||||
|
||||
printf "\n"
|
||||
|
||||
printf "IPv4 addresses\n"
|
||||
printf "===============================================================================\n"
|
||||
ip -h -br -f inet a
|
||||
printf "===============================================================================\n"
|
||||
printf "IPv6 addresses\n"
|
||||
ip -h -br -f inet6 a
|
||||
printf "===============================================================================\n"
|
||||
Reference in New Issue
Block a user