fff-nodewatcher: remove l2tp

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[Bump PKG_RELEASE and SCRIPT_VERSION]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
Robert Langhammer 2019-06-27 14:44:27 +02:00 committed by Adrian Schmutzler
parent cc59852570
commit 5a119dcda8
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-nodewatcher
PKG_RELEASE:=52
PKG_RELEASE:=53
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@ -12,7 +12,7 @@ if ! lock -n "$lockfile"; then
fi
trap "lock -u \"$lockfile\"" INT TERM EXIT
SCRIPT_VERSION="52"
SCRIPT_VERSION="53"
#Get the configuration from the uci configuration file
#If it does not exists, then get it from a normal bash file with variables.
@ -114,8 +114,8 @@ crawl() {
status_text="<status_text>$(cat "$SCRIPT_STATUS_FILE")</status_text>"
fi
#Checks whether either fastd or L2TP is connected
if pidof fastd >/dev/null || grep -q '1' /sys/class/net/l2tp*/carrier 2> /dev/null ; then
# Checks if fastd is running
if pidof fastd >/dev/null ; then
vpn_active="<vpn_active>1</vpn_active>"
else
vpn_active="<vpn_active>0</vpn_active>"