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