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