Add dummy scripts for these events.

This commit is contained in:
mycroft 2003-10-30 17:34:45 +00:00
parent 1455475ac4
commit 87c704cac0
2 changed files with 36 additions and 0 deletions

18
etc/powerd/scripts/lid_switch Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh -
#
# $NetBSD: lid_switch,v 1.1 2003/10/30 17:34:45 mycroft Exp $
#
# Generic script for power button events. We simply attempt to
# shut the system down gracefully, and let the kernel handle
# the poweroff.
#
# Arguments passed by powerd(8):
#
# device event
case "${2}" in
*)
logger -p warning "${0}: unsupported event ${2} on device ${1}"
exit 1
;;
esac

18
etc/powerd/scripts/sleep_button Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh -
#
# $NetBSD: sleep_button,v 1.1 2003/10/30 17:34:45 mycroft Exp $
#
# Generic script for power button events. We simply attempt to
# shut the system down gracefully, and let the kernel handle
# the poweroff.
#
# Arguments passed by powerd(8):
#
# device event
case "${2}" in
*)
logger -p warning "${0}: unsupported event ${2} on device ${1}"
exit 1
;;
esac