From 72ffad073a0960a2ebb30c95ec8a89e896c5c130 Mon Sep 17 00:00:00 2001 From: root <root@monitor01.freifunk-stuttgart.de> Date: Thu, 8 Sep 2022 00:43:48 +0200 Subject: [PATCH] check uci instead of pidfile. --- ffs-set-segment/files/etc/init.d/ffs-set-segment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffs-set-segment/files/etc/init.d/ffs-set-segment b/ffs-set-segment/files/etc/init.d/ffs-set-segment index 15dfcf0..64ecbab 100755 --- a/ffs-set-segment/files/etc/init.d/ffs-set-segment +++ b/ffs-set-segment/files/etc/init.d/ffs-set-segment @@ -4,7 +4,7 @@ START=97 start () { uci set fastd.mesh_vpn.on_connect='/usr/sbin/ffs-set-segment' - if [ -d "/proc/$(cat /var/run/fastd.mesh_vpn.pid)" ]; then + if [ "$(uci get fastd.mesh_vpn.enabled)" = "1" ]; then /etc/init.d/fastd restart fi -- GitLab