Prevent acidental shutdowns on headless solutions:
Should be default config !
Add this to the end of /etc/acpi/powerbtn.sh
# chaveiro mod
#Check for powerbutton pressings
# 1s/(60sXmin)=0.0166666667 min
s=2 # seconds for second press
last=$(find /tmp/powerbtn -type f -amin -$ns)
if test "$last" != ""; then
rm -f /tmp/powerbtn
shutdown -k -h now "Power button pressed"
shutdown -k -h now "Press power button again in $s seconds to accept."
# If all else failed, just initiate a plain shutdown.
#/sbin/shutdown -h now "Power button pressed"
Add to sources as desired:)
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.