Tag Info

New answers tagged

0

The script parameters have changed as well as directory. $1 is "post" on resume/thaw, "pre" otherwise. $2 in both cases contains either "suspend", "hibernate", or "hybrid-sleep". Modifying your example: #!/bin/bash case $1 in pre) case $2 in hibernate) echo "Going to suspend to disk!" ;; hybrid-sleep) echo "Going ...



Top 50 recent answers are included