Hello, I am running Linksys WRTSL54GS on Tomato Firmware v1.27.8747 ND USB. I have a APC SmartUPS-1500i with network management card 9617 connected to the router with a fixed IP address. A desktop Dell Optiplex 755 is connected to the router. The BIOS settings on the desktop is to "Turn On when A/C power returns". When the power goes out the desktop runs on battery for a fixed duration and then turns off (graceful shutdown via APC Network Chute software), while the UPS keeps running with A/C power outlets tunred on. If the power does not returns till the UPS battery dies off, then the UPS goes to sleep and turns off all the A/C power outlets (built on the back of UPS). When A/C main power is restored , the UPS turns on and based on the BIOS settings the desktop is turned on as well. Now sometimes, the UPS shuts off the desktop PC (while UPS A/C power outlets are still on), and before a complete battery drain, the main A/C power is restored. In this specific scenario, since there was no power cutt-off to the desktop PC, it never senses the A/C power return and as a results stays in the shut-off state. Now the only way to remotely turn on a shut off PC is via the Wake on LAN (magic packet) function in the tomato interface, which I have to do manually sitting on a remote location. Based on the above scenario, can I schedule a (cron) job in the tomato interface to periodically query the UPS state. If the UPS is running on battery , then do nothing, but if the UPS is running on A/C main power , then every "x" time interval automatically send the WOL magic packet to all the devices connected (or all devices entered in fixed host list). This way it would make sure that if A/C main power is restored then the desktop will keep running (or will be turned on after certain time period). I guess there is the 'apcupsd' package available on IPKG. However I need help how to install it in the tomato firmware and how to write the intended script. Hope I was able to explain and make sense. Thanks for reading and replying.