Permalink
Browse files

Update netcam scripts

  • Loading branch information...
1 parent 9cd1eaf commit 06944ca3662698aea07deb234186f6e6dda79e34 @marksteward marksteward committed Sep 7, 2011
Showing with 6 additions and 3 deletions.
  1. +4 −1 netcamfix
  2. +2 −2 startmotion
View
5 netcamfix
@@ -2,4 +2,7 @@
# Teeny weeny proxy server, for use with xinetd
netcam=172.31.24.169
-nc -w 3 $netcam 80 | sed -r 's/(boundary=)--sonixboundary/\1sonixboundry/'
+
+while true; do
+ nc -w 3 $netcam 80 | sed -r 's/(boundary=)--sonixboundary/\1sonixboundry/'
+done
View
4 startmotion
@@ -1,7 +1,7 @@
#!/bin/bash
-./netcamfix &
-
+rmmod bttv
+modprobe bttv # /dev/video0
while true; do
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so motion

0 comments on commit 06944ca

Please sign in to comment.