base-files: add simple shutdown script
Since svn rev [38557] we support power buttons, for example the ACPI power button on x86 machines. Add a simple shutdown script to /etc/rc.button, to gracefully shutdown the machine after the power button is pressed. Tested on x86 and x86_64 in a kvm virtual machine. Signed-off-by: Stefan Hellermann <stefan@the2masters.de> SVN-Revision: 40909
This commit is contained in:
parent
813a7c3827
commit
36d0a5e3fb
1 changed files with 5 additions and 0 deletions
5
package/base-files/files/etc/rc.button/power
Normal file
5
package/base-files/files/etc/rc.button/power
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ "${ACTION}" = "released" ] || exit 0
|
||||
|
||||
exec /sbin/poweroff
|
Loading…
Reference in a new issue