--- old/powerbtn.sh 2010-03-30 08:35:25.059130511 +0100 +++ new/powerbtn.sh 2010-03-30 08:35:41.039943784 +0100 @@ -3,6 +3,9 @@ # Initiates a shutdown when the power putton has been # pressed. +# Check to see if the advanced power functions are installed. If not, +# then just poweroff. +test -f /usr/share/acpi-support/power-funcs || exec /sbin/poweroff . /usr/share/acpi-support/power-funcs