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
+2 -2
View File
@@ -928,12 +928,12 @@ ACCESS="command"
; - "systeminfo" systeminfo command is run everytime the block gets refreshed or build (WinNT)
;
COMMAND="curl"
COMMAND="network_info.sh"
#COMMAND="cat"
; define COMMAND parameters (for command access)
;
PARAMS="-s4 ifconfig.co"
PARAMS=""
#PARAMS="/home/pi/BirdNET-Pi/thisrun.txt"
[pingtest]