Talk:Fm radio

From MythTV Official Wiki
Jump to: navigation, search

I added sleep 1 to mythfm, because it gave the error: radio: "Device or resource busy" and didn't play the new radiofrequency.

#!/bin/bash
# Control PVR-150 FM in Myth

if [ "$1" = "wbfo" ]; then
        # First, we'll kill off any other stream that may be playing
        /usr/bin/mythfm_kill
        sleep 1
        echo "I'm about to play:" $1
        /usr/local/bin/ivtv-radio -f 88.7 &

elif [ "$1" = "wbuf" ]; then
        # First, we'll kill off any other stream that may be playing
        /usr/bin/mythfm_kill
        sleep 1
        echo "I'm about to play:" $1
        /usr/local/bin/ivtv-radio -f 92.9 &

else
        exit 1
fi
exit 0

I haven't added it to the main article because I am autodidact an not sure if I made a good addition.