I work with an embedded board (BeagleBoard) using a Linux distribution (Angstrom Linux). I would like to carefully stop the operating system when this button is pressed on the board. I plan to do the following:
Before moving on to my text editor and code, is there any standard Linux daemon for this?
init ( 1) SIGWINCH kb ( " " ), . init - , ctrl-alt-del ; init .
init
SIGWINCH
kb
, , "", SIGWINCH PID 1, kb shutdown -h /etc/inittab.
shutdown -h
/etc/inittab
.. "hal" .
Source: https://habr.com/ru/post/1724058/More articles:HTML >> Very simple question - htmlIs C # /. NET creation small? - c #Why does Thread.interrupt () act as follows? - javaWhen is it best to use exceptions in PHP? - phpDo I want to make an exception or mistake in this PHP script? - phpCSS and font tips - htmlPerformance tuning with SQL Server - performanceAndroid Get Local File Bytes - androidProblem with jug of water in Die Hard 3 in graph - algorithmHow to get checkbox values ββ that are marked? - javascriptAll Articles