#! /bin/sh
# loop endless through favorites
echo "Press [CTRL+C] to stop."
# svdrpsend directory
cd /zz/VDR
i=1
# endless loop
while true
do
    # favorites up
    while [[ $i -lt 25 ]] # nr
    do
	./svdrpsend CHAN $i
	sleep 20
	let i=i+1
    done
    # favorites down
    while [[ $i -gt 1 ]]
    do
	./svdrpsend CHAN $i
	sleep 20
	let i=i-1
    done
done
exit
