forked from freifunk-franken/firmware
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:
parent
cc59852570
commit
5a119dcda8
|
@ -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)
|
||||
|
||||
|
|
|
@ -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>"
|
||||
|
|
Loading…
Reference in New Issue