summaryrefslogtreecommitdiffstats
path: root/modules/bigeye
diff options
context:
space:
mode:
authorkrebs <krebs@UTART>2011-05-17 23:12:58 +0200
committerkrebs <krebs@UTART>2011-05-17 23:12:58 +0200
commit0aafbf8fd8a4bda29f0f9bb2346b38efa6333adb (patch)
tree39f24a0ad392fcb687ad0d66a589abe9466d737a /modules/bigeye
parent9217fe6187b86a7bbf3406737c5fdfa2265d591a (diff)
bigeyed: find device every blink
Diffstat (limited to 'modules/bigeye')
-rwxr-xr-xmodules/bigeye/bigeyed3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/bigeye/bigeyed b/modules/bigeye/bigeyed
index 92ae9cf4..beb96b7c 100755
--- a/modules/bigeye/bigeyed
+++ b/modules/bigeye/bigeyed
@@ -33,12 +33,11 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
EOF
-device="/dev/`cd /sys/class/video4linux && ls | head -n 1`"
-
hostname="`hostname`"
blink() {
date="`date --rfc-3339=s`"
echo $date
+ device="/dev/`cd /sys/class/video4linux && ls | head -n 1`"
mplayer -frames 1 -quiet \
-vo jpeg \
-tv driver=v4l2:device=$device:width=640:height=480 \