Ali Hatami Tajik
2 years ago
1 changed files with 16 additions and 0 deletions
@ -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…
Reference in new issue