- vi /etc/pm/sleep.d/55hddpause
Add the following:
#!/bin/bash
case $1 in
suspend)
echo "Is my script running???"
sync
sleep 10
esac
- chmod +x /etc/pm/sleep.d/55pause
References:
Add the following:
#!/bin/bash
case $1 in
suspend)
echo "Is my script running???"
sync
sleep 10
esac
No comments:
Post a Comment