[Pm-utils] Writing a sleep.d hook that accepts user input?
vale.cofershabica at gmail.com
Tue Mar 16 05:38:46 PDT 2010
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
Thanks for any help you can offer,
More information about the Pm-utils