base-files: add simple shutdown script
authorJohn Crispin <john@openwrt.org>
Mon, 2 Jun 2014 12:43:00 +0000 (12:43 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 2 Jun 2014 12:43:00 +0000 (12:43 +0000)
commit21e8ba1c82b5021f7985fb205bd7d862f796c9a0
treee5071da214cdbff0a16f1049ab3aef16f16acfd9
parent5b90d9743cf6b0141906eceb8a0299f2a35f2bf1
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
package/base-files/files/etc/rc.button/power [new file with mode: 0644]