Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/powerd/scripts Remove the apm(8) example. Instead point ...



details:   https://anonhg.NetBSD.org/src/rev/ae6d52871dcc
branches:  trunk
changeset: 760219:ae6d52871dcc
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Fri Dec 31 09:33:10 2010 +0000

description:
Remove the apm(8) example. Instead point to the sleep_button -script.

diffstat:

 etc/powerd/scripts/lid_switch |  15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diffs (39 lines):

diff -r 38e338dac96a -r ae6d52871dcc etc/powerd/scripts/lid_switch
--- a/etc/powerd/scripts/lid_switch     Fri Dec 31 09:29:43 2010 +0000
+++ b/etc/powerd/scripts/lid_switch     Fri Dec 31 09:33:10 2010 +0000
@@ -1,8 +1,8 @@
 #!/bin/sh -
 #
-#      $NetBSD: lid_switch,v 1.8 2010/10/28 02:06:02 macallan Exp $
+#      $NetBSD: lid_switch,v 1.9 2010/12/31 09:33:10 jruoho Exp $
 #
-# Generic script for lid switch events.  We try to put the system to sleep.
+# Generic script for lid switch events.
 #
 # Arguments passed by powerd(8):
 #
@@ -10,18 +10,19 @@
 
 case "${2}" in
 pressed)
-       #if /etc/rc.d/apmd status >/dev/null ; then
-       #       /usr/sbin/apm -S
-       #else
-       #       /usr/sbin/apm -d -S
-       #fi
+
+       # If you want to put the system into sleep when the lid
+       # is closed, see the sleep_button -script for examples.
+       #
        wsconsctl -d -w backlight=0 >/dev/null
        exit 0
        ;;
+
 released)
        wsconsctl -d -w backlight=1 >/dev/null
        exit 0
        ;;
+
 *)
        logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1
        exit 1



Home | Main Index | Thread Index | Old Index