Commit 27d04c06 authored by FFS-Roland's avatar FFS-Roland

restart fastd only if already runnung. Not manually running script.

parent de8353bc
......@@ -4,8 +4,10 @@ START=97
start () {
uci set fastd.mesh_vpn.on_connect='/usr/sbin/ffs-set-segment'
/etc/init.d/fastd restart
/usr/sbin/ffs-set-segment
if [ -d "/proc/$(cat /var/run/fastd.mesh_vpn.pid)" ]; then
/etc/init.d/fastd restart
fi
/etc/init.d/micrond enable
/etc/init.d/micrond restart
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment