Where to put scripts that run when computer is resumed?

view story

http://unix.stackexchange.com – I need to lock the screen when my computer is waken up from memory suspend, So I tried to put the following script to /usr/lib/pm-utils/sleep.d and /etc/pm/sleep.d, but it never got executed, #!/bin/sh case "$1" in hibernate|suspend) ;; thaw|resume) vlock -ans ;; *) exit $NA ;; esac P.S It's pm-suspend not pm-hibernate. (HowTos)