up (239B)
1 sh -c " 2 retry=true 3 while $retry; do 4 retry=false 5 for card in $(sed -n -e '/^ \\?[0-9]/{s/ *\\([0-9]*\\).*/\\1/;p}' /proc/asound/cards); do 6 $retry && sleep 0.5 7 test -e /dev/snd/controlC${card} || retry=true 8 done 9 $retry && sleep 0.5 10 done 11 : 12 "