Possible to trigger a script when RED is up?

Hello,

Does anyone know a way I could trigger a script after the RED interface obtains a new DHCP lease? (That is, the internet connection comes up).

Rather than offer us a small discount a month, my ISP gives customers the option to increase their bandwidth for a day a week. I use QoS as my normal bandwidth can be used on occasion when streaming 4k video, so I need to change QoS options.

I already have a script to do this, but I have been running it on a cron job daily. It would be better if I could trigger it to run whenever the RED interface comes up with an IP.

Thank you!

It looks like you can drop a script into /etc/rc.d/init.d/networking/red.up.

1 Like

Oh brilliant, I had missed that!

I’ve spent so much time working with systemd now that I didn’t think to check the good old SysV scripts!