Browse Source

Add sleep utility

This script will executed when sleeping the waking  up.
master
Ali Hatami Tajik 2 years ago
parent
commit
96e2ea6a56
  1. 16
      src/scripts/sleeputil.sh

16
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
Loading…
Cancel
Save