On Wed, Jul 16, 2008 at 7:50 AM, InSa wrote:
>
> So the question is: where do I put custom resume's script?
Put a script under /etc/pm/sleep.d. (See man pm-action). For example,
I use the following script to unmount a drive during suspend, and
remount it on resume.
$ cat /etc/pm/sleep.d/usbcryptdisk
#!/bin/sh
# Unmount and stop USB cryptdisk/Start and mount USB cryptdisk
case "$1" in
hibernate|suspend)
umount /media/cryptsd
cryptdisks_stop cryptsd
;;
thaw|resume)
sleep 10
cryptdisks_start cryptsd
mount /media/cryptsd
;;
*)
;;
esac
_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel