forked from freifunk-franken/firmware
Fix showing VPN status in the WebUI
Just check if fastd is running Signed-off-by: Dominik Heidler <dominik@heidler.eu> Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
This commit is contained in:
parent
32de2cc58e
commit
e0202dedec
|
@ -41,7 +41,7 @@ print 'uptime' "${uptime##*up}"
|
|||
print 'uname' "$(uname -s -m -r)"
|
||||
print 'date' "$(date)"
|
||||
|
||||
if [ $(sockread /var/run/fastd.status < /dev/null 2> /dev/null | grep -c '"connection": {') -gt 0 ]; then
|
||||
if pidof fastd >/dev/null ; then
|
||||
print 'has_vpn' 'Ja'
|
||||
else
|
||||
print 'has_vpn' 'Nein'
|
||||
|
|
Loading…
Reference in New Issue
Block a user