Announce a reason for the shutdown.
This commit is contained in:
parent
bd0f8ee224
commit
6f4bc2c877
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: power_button,v 1.2 2003/10/30 17:32:45 mycroft Exp $
|
||||
# $NetBSD: power_button,v 1.3 2003/11/01 23:04:54 mycroft Exp $
|
||||
#
|
||||
# Generic script for power button events. We simply attempt to
|
||||
# shut the system down gracefully, and let the kernel handle
|
||||
|
@ -12,7 +12,7 @@
|
|||
|
||||
case "${2}" in
|
||||
pressed)
|
||||
/sbin/shutdown -p now
|
||||
/sbin/shutdown -p now "power button pressed"
|
||||
exit 0
|
||||
;;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: reset_button,v 1.2 2003/10/30 17:32:45 mycroft Exp $
|
||||
# $NetBSD: reset_button,v 1.3 2003/11/01 23:04:54 mycroft Exp $
|
||||
#
|
||||
# Generic script for reset button events. We simply attempt to
|
||||
# reboot the system gracefully.
|
||||
|
@ -11,7 +11,7 @@
|
|||
|
||||
case "${2}" in
|
||||
pressed)
|
||||
/sbin/shutdown -r now
|
||||
/sbin/shutdown -r now "reset button pressed"
|
||||
exit 0
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue