base-files: add simple shutdown script
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Jun 2014 12:43:00 +0000 (12:43 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Jun 2014 12:43:00 +0000 (12:43 +0000)
commita643de252eb55402196175d18732a888e86395a2
treee5071da214cdbff0a16f1049ab3aef16f16acfd9
parent790b7911819bffe556f1e7c6d87edd5a44535ee8
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40909 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/etc/rc.button/power [new file with mode: 0644]