Feature Request: shutdown script

It would be helpful to run a script just before the router shuts down. The script would run in response to an orderly shutdown, and not a power cycle. Something similar to a startup script, which can be assigned using the scheduler.

you could create a script that ends with a shutdown.