what is right way to run script on wake up from sleep on Mageia 5?
I created a script named 99test
- Code: Select all
#!/bin/sh
case "$1" in
hibernate|suspend)
;;
thaw|resume)
touch /home/test.txt
;;
*) exit $NA
;;
esac
and I put it in two places:
/usr/lib64/pm-utils/sleep.d/
and
/etc/pm/sleep.d/
but without success. File test.txt not was created after wake up from sleep.