reset_button revision 1.2
1#!/bin/sh - 2# 3# $NetBSD: reset_button,v 1.2 2003/10/30 17:32:45 mycroft Exp $ 4# 5# Generic script for reset button events. We simply attempt to 6# reboot the system gracefully. 7# 8# Arguments passed by powerd(8): 9# 10# device event 11 12case "${2}" in 13pressed) 14 /sbin/shutdown -r now 15 exit 0 16 ;; 17 18*) 19 logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1 20 exit 1 21 ;; 22esac 23