Skip to content
Snippets Groups Projects
Commit 36d0a5e3 authored by John Crispin's avatar John Crispin
Browse files

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: default avatarStefan Hellermann <stefan@the2masters.de>

SVN-Revision: 40909
parent 813a7c38
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
[ "${ACTION}" = "released" ] || exit 0
exec /sbin/poweroff
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment