This website requires JavaScript.
Explore
Help
Sign In
ExternalVendorCode
/
openwrt
Watch
1
Star
0
Fork
0
You've already forked openwrt
mirror of
https://github.com/openwrt/openwrt.git
synced
2024-12-30 18:47:06 +00:00
Code
Issues
Actions
3
Packages
Projects
Releases
Wiki
Activity
c9cb6411c1
openwrt
/
package
/
base-files
/
files
/
etc
/
rc.button
/
power
8 lines
81 B
Plaintext
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 New Issue
Copy Permalink