Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#!/bin/sh -
#
#	$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.
#
# Arguments passed by powerd(8):
#
#	device event

case "${2}" in
pressed)
	/sbin/shutdown -r now "reset button pressed"
	exit 0
	;;

*)
	logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1
	exit 1
	;;
esac