Module Name:    src
Committed By:   jruoho
Date:           Fri Dec 31 09:33:11 UTC 2010

Modified Files:
        src/etc/powerd/scripts: lid_switch

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


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/etc/powerd/scripts/lid_switch

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/powerd/scripts/lid_switch
diff -u src/etc/powerd/scripts/lid_switch:1.8 src/etc/powerd/scripts/lid_switch:1.9
--- src/etc/powerd/scripts/lid_switch:1.8	Thu Oct 28 02:06:02 2010
+++ src/etc/powerd/scripts/lid_switch	Fri Dec 31 09:33:10 2010
@@ -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

Reply via email to