summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--instr-daemon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/instr-daemon.c b/instr-daemon.c
index b7a8f7b..f1b1a6d 100644
--- a/instr-daemon.c
+++ b/instr-daemon.c
@@ -312,8 +312,7 @@ int main(int argc, char **argv)
static gboolean periodic_poll (void)
{
if (bus_getpin (POWER_FAIL)) {
- // FIXME: system shutdown
- printf ("power fail detected\n");
+ system ("/usr/bin/systemctl poweroff");
}
Menu_Check_Buttons ();