blob: 85cda069de56591443f00812e81d7826c433cf28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--- 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 @@
/* �ãϣͥݡ��ȤΥ������� */
close (pd);
+#if 0
sprintf(command, "halt %s", arg_buf_wo_p);
system(command);
sleep (10);
+#endif
}
else if (pow == '1')
{ /* input power restored */
/* �ãϣͥݡ��ȤΥ������� */
close (pd);
+#if 0
system ("reboot -i -d -p");
+#endif
}
else
{ /* manual shutdown */
/* �ãϣͥݡ��ȤΥ������� */
close (pd);
+#if 0
sprintf(command, "halt %s", arg_buf);
system(command);
+#endif
}
exit (0);
|