summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:02:40 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:02:40 -0500
commit82e549f79c290d6a97cf9161476eeb58cb564da3 (patch)
treebba371ba2e176063b870728bbc67f171f753fa3c
parent577674a51fa4b5a871c256af85f53e9b848d9520 (diff)
poweroff on +24V power fail implemented
-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 ();