Skip to content

Commit

Permalink
add 2 scripts to record timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
lukec committed Apr 14, 2010
1 parent 5f51b75 commit 695edc3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hooks/bathroom.d/record
@@ -0,0 +1,12 @@
#!/bin/bash

echo "bathroom recorder: $1 $2"
if [ "$1" == "door" ]; then
if [ "$2" == "open" ]; then
perl -le 'print time' > status.d/last-open
elif [ "$2" == "closed" ]; then
perl -le 'print time' > status.d/last-close
fi
fi


3 changes: 3 additions & 0 deletions hooks/plunger.d/record
@@ -0,0 +1,3 @@
#!/bin/bash

perl -le 'print time' > status.d/last-plunge

0 comments on commit 695edc3

Please sign in to comment.