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

This commit is contained in:
jruoho 2010-12-31 09:33:10 +00:00
parent d6f07c40ce
commit e26a5e9d52
1 changed files with 8 additions and 7 deletions

View File

@ -1,8 +1,8 @@
#!/bin/sh - #!/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): # Arguments passed by powerd(8):
# #
@ -10,18 +10,19 @@
case "${2}" in case "${2}" in
pressed) pressed)
#if /etc/rc.d/apmd status >/dev/null ; then
# /usr/sbin/apm -S # If you want to put the system into sleep when the lid
#else # is closed, see the sleep_button -script for examples.
# /usr/sbin/apm -d -S #
#fi
wsconsctl -d -w backlight=0 >/dev/null wsconsctl -d -w backlight=0 >/dev/null
exit 0 exit 0
;; ;;
released) released)
wsconsctl -d -w backlight=1 >/dev/null wsconsctl -d -w backlight=1 >/dev/null
exit 0 exit 0
;; ;;
*) *)
logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1 logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1
exit 1 exit 1