#!/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