adding new network_info.sh tool to system info page
This commit is contained in:
Executable
+9
@@ -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
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user