Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- tail -f /var/log/kernel.log | while read line ; do
- echo "$line" | grep "LID0"
- if [ $? = 0 ]
- then
- # Actions
- isightcapture hello.jpg
- echo "Woken up: $line"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement