Resubmitting this patch with a sysfs interface instead of /proc. During some off line discussion, /sys/power was suggested as a possible candidate area for this functionality to reside. ------------------------------------------------------------------------------------------------------------------------- During power outages, the ups notifies the system for a shutdown. In the current setup, it isn't possible to poweron when power is restored. This patch fixes the issue by calling the right ibm,power-off-ups token during such events. It also adds a sysfs interface so that rc.powerfail can parse the epow events and modify the power-off behavior accordingly to enable the right token to be called. Signed-off-by: Manish Ahuja