#!/bin/sh set -e if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ]; then case "$1" in pre) service tlp stop ;; post) service tlp start ;; esac fi