#!/bin/sh echo "`basename $0`, (c)2008-2009 PaulTT" PTTUSBBUS=`/usr/bin/lsusb | grep -i isight | cut -d" " -f 2` PTTUSBDEV=`/usr/bin/lsusb | grep -i isight | cut -d" " -f 4 | cut -d":" -f 1` sudo ift-load -f /lib/firmware/isight.fw -b $PTTUSBBUS -d $PTTUSBDEV sleep 3 mplayer -nosound tv:// -tv driver=v4l2:input=1:width=320:height=240:device=/dev/video0:outfmt=uyvy:fps=24 -v $@ echo "" echo "" echo "if it doesn't work, check with lsusb the Device identifier, then do" echo "(assuming for example, Device $PTTUSBDEV):" echo " ift-load -f /lib/firmware/isight.fw -b $PTTUSBBUS -d $PTTUSBDEV" echo "" echo "" echo "remember to kill mplayer, when needed!!!!!!!" echo ""