Gerardo,
On Mon, Sep 26, 2011 at 2:02 AM, Gerardo Exequiel Pozzi
This can be useful for run apcupsd --killpower
Rather than adding a new hook, what about reusing the old poweroff hook? There should not really be a difference between the two. My proposed patch below:
From 4f4681a94923e69b9e078db6f2cae585ecbbb612 Mon Sep 17 00:00:00 2001 From: Tom Gundersen
Date: Mon, 26 Sep 2011 16:01:45 +0200 Subject: [PATCH] hooks: move shutdown_poweroff before remounting / ro
This will make sure the same hook is run regardless of whether you pivot
to the shutdown ramfs or not. This is in order to run apcupsd --killpower
as pointed out by Gerardo.
Signed-off-by: Tom Gundersen