Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/powerd/scripts use '/etc/rc.d/apmd onestatus' rather tha...
details: https://anonhg.NetBSD.org/src/rev/5e26daee8ccf
branches: trunk
changeset: 757731:5e26daee8ccf
user: abs <abs%NetBSD.org@localhost>
date: Sun Sep 19 21:47:28 2010 +0000
description:
use '/etc/rc.d/apmd onestatus' rather than '/etc/rc.d/apmd status',
so we DTRT if apmd is set to NO in rc.conf
diffstat:
etc/powerd/scripts/lid_switch | 4 ++--
etc/powerd/scripts/sleep_button | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r 7b4b99204f35 -r 5e26daee8ccf etc/powerd/scripts/lid_switch
--- a/etc/powerd/scripts/lid_switch Sun Sep 19 20:52:23 2010 +0000
+++ b/etc/powerd/scripts/lid_switch Sun Sep 19 21:47:28 2010 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: lid_switch,v 1.6 2010/09/14 04:37:04 macallan Exp $
+# $NetBSD: lid_switch,v 1.7 2010/09/19 21:47:28 abs Exp $
#
# Generic script for lid switch events. We try to put the system to sleep.
#
@@ -10,7 +10,7 @@
case "${2}" in
pressed)
- #if /etc/rc.d/apmd status >/dev/null ; then
+ #if /etc/rc.d/apmd onestatus >/dev/null ; then
# /usr/sbin/apm -S
#else
# /usr/sbin/apm -d -S
diff -r 7b4b99204f35 -r 5e26daee8ccf etc/powerd/scripts/sleep_button
--- a/etc/powerd/scripts/sleep_button Sun Sep 19 20:52:23 2010 +0000
+++ b/etc/powerd/scripts/sleep_button Sun Sep 19 21:47:28 2010 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: sleep_button,v 1.5 2008/06/06 23:13:58 jmcneill Exp $
+# $NetBSD: sleep_button,v 1.6 2010/09/19 21:47:28 abs Exp $
#
# Generic script for sleep button events.
#
@@ -20,7 +20,7 @@
/sbin/sysctl -w machdep.sleep_state=3
else
sleep 1
- if /etc/rc.d/apmd status >/dev/null ; then
+ if /etc/rc.d/apmd onestatus >/dev/null ; then
/usr/sbin/apm -z
else
/usr/sbin/apm -d -z
Home |
Main Index |
Thread Index |
Old Index