Thanks @Daumantas this was completely new for me.
At the moment I check the OpenVPN connection with:
if ifconfig | grep -q ‘VPNName’; then
fi
This works, but is it save for future?
And whats about “ubus call ioman.gpio.din1 status”, do this change as well?
We have RUTX08 around the world, if this functions do not work anymore all our bash scripts stop working…
Edit: For the gpio I started a new thread: