mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 07:22:33 +00:00
36d0a5e3fb
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
6 lines
71 B
Bash
6 lines
71 B
Bash
#!/bin/sh
|
|
|
|
[ "${ACTION}" = "released" ] || exit 0
|
|
|
|
exec /sbin/poweroff
|