openvpn: Add more hotplug events
authorMichal Hrusecky <michal.hrusecky@turris.com>
Mon, 15 May 2023 12:30:29 +0000 (14:30 +0200)
committerRosen Penev <rosenp@gmail.com>
Sat, 20 May 2023 09:58:33 +0000 (12:58 +0300)
commitf8a8b71e26b9bdbf86fbb7d4d1482637af7f3ba4
tree7068c70945940851f102439ac315f12be885f9ea
parent7cc8d253818a745c065014586cc93ea5e2c612c9
openvpn: Add more hotplug events

OpenVPN supports more hooks than just 'up' and 'down'. Especially
reacting to 'route-up' and 'route-pre-down' events could be important.
When routing table changes, it can make sense to adapt firewall, run
some tests or change even more routes. This change passes those events
to hotplug, so it is easy to react to them without changing
configuration files provided by VPN provider.

Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
net/openvpn/Makefile
net/openvpn/files/openvpn.init