adding new network_info.sh tool to system info page

This commit is contained in:
mcguirepr89
2022-01-25 08:48:10 -05:00
parent 315605092c
commit 79102c56f1
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
#Display network info for phpsysinfo
echo "LAN IP: $(hostname -I|cut -d' ' -f1)"
echo "Public IP: $(curl -s4 ifconfig.co)"
echo
echo "------------------------------"
echo ' $(ip a) '
ip a