On 12/9/06, <b class="gmail_sendername">we are</b> &lt;<a href="mailto:gateswideopen@gmail.com">gateswideopen@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; #!/bin/bash<br>&gt;<br>&gt; if [ -e /proc/asound/$HDSP ]; then<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qjackctl --preset=$HDSP<br>&gt; else<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; quackctl --preset=$ICH<br>&gt;<br>&gt; fi<br><br>Yep,<br>thats exactly what i need. problem solved!
<br><br>thanks.<br><br>tom.<br></blockquote></div><br>To make it clear for users who have other types of cards, a generic syntax could be :<br><br><span class="q">#!/bin/bash<br><br>if [ -e /proc/asound/$MY_REMOVABLE_CARD ]; then
<br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; qjackctl --preset=</span><span class="q">$MY_REMOVABLE_CARD</span><br><span class="q">else<br>&nbsp; &nbsp; &nbsp; &nbsp; quackctl --preset=$MY_DEFAULT_INTERNAL_CARD<br>fi<br><br>This is just what I needed to run jackd as a start up daemon...
<br></span>__________________<br>Marc-Olivier Barre,<br>Markinoko.<span class="q"></span>