I want to lock my X display with xlock prior to suspending my iBook yet
I couldn't find any scripts that are run just before the lid is closed
or the powerbutton pressed.
you probably want a current version of pbbuttonsd which conflicts with pmud
as it provides all the functionality of pmud and a lot more, one thing
being an init-scripts-like system to call stuff before suspend and after
resume in these directories:
/etc/power/scripts.d # scripts
/etc/power/suspend.d # symbolic links
/etc/power/resume.d # symbolic links
The file /etc/power/README explains this in more detail.
Exactly what I was looking for, thanks - too bad I had pbbuttonsd on
hold because some version after 0.5.3a didn't get sound/volume right and
thus missed this innovation.
Now finally security-wise I have my iBook where I want it :)
-Thomas