This website works better with JavaScript.
Explore
Help
Register
Sign In
dumalogiya
/
openwrt
Watch
2
Star
0
Fork
You've already forked openwrt
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34bbbbf9c3
v19.07.3_mercusys_ac12_duma
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '34bbbbf9c3'
${ noResults }
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
10 years ago
#!/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
9 years ago
return 0