[Debian-eeepc-devel] Custom resume's script

Svend Sorensen ssorensen at gmail.com
Thu Jul 17 17:43:07 UTC 2008


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



More information about the Debian-eeepc-devel mailing list