blob: 04ea9425c5e1136e7d49a26a5b1570849f78703c (
plain)
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
|
$NetBSD: patch-ac,v 1.2 1999/11/11 01:16:59 hubertf Exp $
--- kapm/kapm.cpp.orig Tue Nov 2 06:26:59 1999
+++ kapm/kapm.cpp Tue Nov 2 06:27:36 1999
@@ -85,15 +85,23 @@
}
void Kapm::slotSuspend() {
+#ifdef __NetBSD__
+ suApp("/usr/sbin/apm -z", i18n("suspend"));
+#else /* !__NetBSD__ */
suApp("apm -s", i18n("suspend"));
+#endif /* __NetBSD__ */
}
void Kapm::slotStandby() {
- suApp("apm -S", i18n("standby"));
+ suApp("/usr/sbin/apm -S", i18n("standby")); /* -S is for NetBSD and Linux */
}
void Kapm::slotPowerOff() {
+#ifdef __NetBSD__
+ suApp("/sbin/halt -p", i18n("power off"), true);
+#else /* !__NetBSD__ */
suApp("poweroff", i18n("power off"), true);
+#endif /* __NetBSD__ */
}
void Kapm::slotAPMStatus() {
|