[Pm-utils] Writing a sleep.d hook that accepts user input?

Vale Cofer-Shabica vale.cofershabica at gmail.com
Tue Mar 16 05:38:46 PDT 2010


Hi,
I use loop-aes to encrypt all the partitions on my machine. I would
like to be able to unmount some directories (e.g. /home) on suspend
and then be required to enter a password to remount on resume. Finding
open files, syncing and unmounting isn't a problem, but resuming is.
Is there a way to get user input into a process spawned by a hook? In
the case that X is running, it's almost trivial since I can create an
xterm with the command I need, but since I'm not always running X, I
need a solution that doesn't rely on it. All I need to be able to do
is call "#mount /home" and then enter a password at a prompt. Any
thoughts?

Thanks for any help you can offer,
vale


More information about the Pm-utils mailing list