#!/bin/sh # For some reason, the working video device always seems to switch # around, sometimes even doing so between closely-spaced invocations # of mplayer. So we just try devices; whichever one works, works. for name in 0 1 2 do DEVICE=/dev/video${name} if [ -e ${DEVICE} ]; then mplayer -tv device=${DEVICE} tv:// fi done