Thanks for your answer, but this does not answer my question.
A month ago, the snippet I posted worked (inside ovpn config file) to execute my scripts on route addition/deletion.
Since a month, the OpenWRT scripts override the openvpn script handlers by executing some hotplug stuff. But I digged into it and found the solution:
You can create scripts in /etc/hotplug.d/openvpn.
I basically copied my script in there, putting some logic around:
[ "${INSTANCE}" = "vpn1" ] && {
logger -t hotplug "Device: ${INSTANCE} / Action: ${ACTION}"
if [ "$script_type" == "route-up" ]; then
ip route add default via $route_vpn_gateway dev $dev table vpn1tbl proto static
elif [ "$script_type" == "route-pre-down" ]; then
ip route del default via $route_vpn_gateway dev $dev table vpn1tbl proto static
fi
}