diff --git a/src/scripts/sleeputil.sh b/src/scripts/sleeputil.sh new file mode 100644 index 0000000..d92e8c4 --- /dev/null +++ b/src/scripts/sleeputil.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# should be moved to the /lib/systemd/system-sleep/ + +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +case "$1" in + pre) + #code execution BEFORE sleeping/hibernating/suspending + ;; + post) + #code execution AFTER resuming + ;; +esac + +exit 0 \ No newline at end of file