Skip to content

Instantly share code, notes, and snippets.

@alicraigmile
Created April 21, 2014 23:07
Show Gist options
  • Save alicraigmile/11159591 to your computer and use it in GitHub Desktop.
Save alicraigmile/11159591 to your computer and use it in GitHub Desktop.
#/bin/sh
MAXTUNER=46
i=0
while [ $i -lt $MAXTUNER ];
do
rmmod tuner saa7134 saa7134-alsa
modprobe saa7134 card=70 tuner=$i
modprobe saa7134-alsa
echo "Actual tuner is:" $i
sleep 1 # this is to make sure /dev/video is registered when tvtime starts
tvtime
i=$(($i+1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment