This website requires JavaScript.
Explore
Help
Register
Sign in
KumiSystems
/
openwrtv4
Watch
1
Star
0
Fork
You've already forked openwrtv4
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
e58ea0a80d
openwrtv4
/
package
/
base-files
/
files
/
etc
/
rc.button
/
power
8 lines
81 B
Text
Raw
Normal View
History
Unescape
Escape
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
2014-06-02 12:43:00 +00:00
#!/bin/sh
[ "${ACTION}" = "released" ] || exit 0
exec /sbin/poweroff
base-files: buttons: make power script return 0 It was missed in the r46471. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46582
2015-08-12 00:57:53 +00:00
return 0
Reference in a new issue
Copy permalink