Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2012
404
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement