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)
|
; - "systeminfo" systeminfo command is run everytime the block gets refreshed or build (WinNT)
|
||||||
;
|
;
|
||||||
|
|
||||||
COMMAND="curl"
|
COMMAND="network_info.sh"
|
||||||
#COMMAND="cat"
|
#COMMAND="cat"
|
||||||
|
|
||||||
; define COMMAND parameters (for command access)
|
; define COMMAND parameters (for command access)
|
||||||
;
|
;
|
||||||
PARAMS="-s4 ifconfig.co"
|
PARAMS=""
|
||||||
#PARAMS="/home/pi/BirdNET-Pi/thisrun.txt"
|
#PARAMS="/home/pi/BirdNET-Pi/thisrun.txt"
|
||||||
|
|
||||||
[pingtest]
|
[pingtest]
|
||||||
|
|||||||
Reference in New Issue
Block a user