Are there network hooks to run script after interface is taken up?



Using normal configuration option of routes will take to long to boot up.
I have 105 static routes and ubnt edge router needs 5min to boot with this routes using commands

set protocols static route next-hop

Using a script
with commands

route add -net netmask gw

boot up time will have 50sec. as without any static route BUT the problem is if in interface goes down the routes are lost.
Question: Are there network hooks to run a script after an interface is up so I can add routes per interface in a script?

Have nothing found in the forum.

Thanks for any hint!!

BTW: Very nice os for routers!! I love it!!