#! /bin/sh
# loop endless through all on D0 and D2
echo "Press [CTRL+C] to stop."
# svdrpsend directory
cd /zz/VDR
i=1
# endless loop
while true
do
    # all channels up
    while [[ $i -lt 80 ]] # nr
    do
	./svdrpsend -p 6420 CHAN $i &
	./svdrpsend -p 6421 CHAN $i &
        sleep 20
	let i=i+1
    done
    # all channels down
    while [[ $i -gt 1 ]]
    do
	./svdrpsend -p 6420 CHAN $i &
	./svdrpsend -p 6421 CHAN $i &
        sleep 20
	let i=i-1
    done
done
exit
