Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2012
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #!/bin/sh
  2. tail -f /var/log/kernel.log | while read line ; do
  3.         echo "$line" | grep "LID0"
  4.         if [ $? = 0 ]
  5.         then
  6.                 # Actions
  7.         isightcapture hello.jpg
  8.                 echo "Woken up: $line"
  9.         fi
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement