mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-08 02:15:08 +00:00
5f4cfd5c07
controller daemon, is supported following UPS series: FREQUPS FW-F series FREQUPS FW-A series FREQUPS FW-V series PowerUPS AX-M series Sponsored by: Ensure Technology Ltd Reviewed by: ume
32 lines
667 B
C
32 lines
667 B
C
--- upsdown/upsdown.c.orig Wed May 18 10:14:00 2005
|
|
+++ upsdown/upsdown.c Wed Jan 25 13:47:45 2006
|
|
@@ -154,22 +154,28 @@
|
|
/* COMポートのクローズ */
|
|
close (pd);
|
|
|
|
+#if 0
|
|
sprintf(command, "halt %s", arg_buf_wo_p);
|
|
system(command);
|
|
sleep (10);
|
|
+#endif
|
|
}
|
|
else if (pow == '1')
|
|
{ /* input power restored */
|
|
/* COMポートのクローズ */
|
|
close (pd);
|
|
+#if 0
|
|
system ("reboot -i -d -p");
|
|
+#endif
|
|
}
|
|
else
|
|
{ /* manual shutdown */
|
|
/* COMポートのクローズ */
|
|
close (pd);
|
|
+#if 0
|
|
sprintf(command, "halt %s", arg_buf);
|
|
system(command);
|
|
+#endif
|
|
}
|
|
|
|
exit (0);
|