reset_button revision 1.3
1#!/bin/sh - 2# 3# $NetBSD: reset_button,v 1.3 2003/11/01 23:04:54 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 "reset button pressed" 15 exit 0 16 ;; 17 18*) 19 logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1 20 exit 1 21 ;; 22esac 23