Another option:
-
timer used for bathroom fanI've just found this device:
http://www.elektrobock.cz/en/timer/product.html?id=6it's typically used for delayed switching off bathroom fan after the lights are turned off.
So the idea is:
- switching on (router + modem + nas) - just turn on all the device with one button
- switching off - router + modem are turned off immediately, while nas runs every 5 seconds script to check if router is active and if not then shuts it self down, nas power adaptor is connected over device with time delayed off so it's got time to shut itself gracefully.
Note the minimum power spec of 10 Watts on the that device. It uses a triac for switching and may not work with the Dockstar which is speced at 5W I believe