etc/acpi/suspend2ram.sh
fi
exit 0
</code>
Add a hash mark before "/etc/acpi/suspend2ram.sh" (this line is now ignored but is still there in ... se this hack)
Add a new line "/sbin/fastshutdown.sh" as below
<code>
#!/bin/sh
LID_STATE=`cat /proc/acpi/button/lid/LID/state | awk '{print $2 }'`
if [... "closed" ] ; then
# /etc/acpi/suspend2ram.sh
/sbin/fastshutdown.sh
fi
exit 0
</code>
ialog shutdown_dialog.backup
echo -e '#!/bin/bash\nsudo /sbin/fastshutdown.sh' > shutdown_dialog
chmod +x shutdown_dialog
... er button runs a script called /etc/acpi/powerbtn.sh//
This script then calls the shutdown_dialog fil... nged it to run a script called /sbin/fastshutdown.sh//
This script kills the processes and shuts down ... Edit the 2nd line to:
sudo /sbin/fastshutdown.sh --ask
* Save (Ctrl+s) and Exit (Ctrl+q)
The g