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 15dfcf08112d1e83fb388debdfeeed47773a241e..64ecbabe930681da973923eea2c5b3c345d458b9 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