Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # By Ashfame
- while true
- do
- # keep checking for idle dropbox status
- STATUS=`dropbox status`
- if [ $STATUS = 'Idle' ]; then
- notify-send "System Shutdown" "System will power off now"
- sleep 10
- shutdown -P
- exit
- fi
- # wait for 10 secs for the next check (iteration)
- sleep 10
- done
- exit
Add Comment
Please, Sign In to add comment