forked from freifunk-franken/firmware
treewide: Move fastd information for nodewatcher in the correct package
Fastd information should read from nodewatcher from the fastd package With this patch it's possible to add wireguard information for layer3 in the correct package Signed-off-by: Christian Dresel <freifunk@dresel.systems>
This commit is contained in:
parent
e3954fddf5
commit
83b70b8332
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
# Netmon Nodewatcher (C) 2010-2012 Freifunk Oldenburg
|
||||
# License; GPL v3
|
||||
|
||||
# Checks if fastd is running
|
||||
vpn_active=0
|
||||
pidof fastd >/dev/null && vpn_active=1
|
||||
SYSTEM_DATA="$SYSTEM_DATA<vpn_active>$vpn_active</vpn_active>"
|
|
@ -107,11 +107,6 @@ if [ -s "$SCRIPT_STATUS_FILE" ]; then
|
|||
SYSTEM_DATA="$SYSTEM_DATA<status_text>$(cat "$SCRIPT_STATUS_FILE")</status_text>"
|
||||
fi
|
||||
|
||||
# Checks if fastd is running
|
||||
vpn_active=0
|
||||
pidof fastd >/dev/null && vpn_active=1
|
||||
SYSTEM_DATA="$SYSTEM_DATA<vpn_active>$vpn_active</vpn_active>"
|
||||
|
||||
echo -n "<system_data>$SYSTEM_DATA</system_data>"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue