Skip to content
Snippets Groups Projects
Commit 72ffad07 authored by root's avatar root
Browse files

check uci instead of pidfile.

parent ca2010af
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment