Hey guys trying to figure out the switch case for when a linux computer wakes/resumes from sleep. This is the bash script equivalent:
I was seeing if this would work in my case (feeling it won't since python probably doesn't understand, hibernate, suspend, resume, thaw commands)
case $1 in
echo "Hey guy, we are going to suspend to disk!"
echo "Oh, this time we are doing a suspend to RAM. Cool!"
echo "Oh, suspend to disk is over, we are resuming..."
echo "Hey, the suspend to RAM seems to be over..."
*) echo "Somebody is calling me totally wrong."
#!/usr/bin env python