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:
Dominik Heidler 2016-03-01 10:58:26 +01:00 committed by Tobias Klaus
parent 32de2cc58e
commit e0202dedec
1 changed files with 1 additions and 1 deletions

View File

@ -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'