openvpn: Add more hotplug events
[feed/packages.git] / net / openvpn / files / openvpn.init
index 380b423495cc3d9564aa26fd5d748a8457108685..b5f612e46b974444207eb60b509b0081b2515abb 100644 (file)
@@ -153,6 +153,9 @@ openvpn_add_instance() {
                --config "$conf" \
                --up "/usr/libexec/openvpn-hotplug up $name" \
                --down "/usr/libexec/openvpn-hotplug down $name" \
+               --route-up "/usr/libexec/openvpn-hotplug route-up $name" \
+               --route-pre-down "/usr/libexec/openvpn-hotplug route-pre-down $name" \
+               --ipchange "/usr/libexec/openvpn-hotplug ipchange $name" \
                ${up:+--setenv user_up "$up"} \
                ${down:+--setenv user_down "$down"} \
                --script-security "${security:-2}" \