On 01 Jun 2007 18:46:49 +0200 kreon28@xxxxxxxxx wrote: > Hi, > > >Try replacing the line above with this line: > >local CARDS=$(cat /proc/asound/cards | awk '/: / { print $1 }'$local > >CARDNUM) > > Now, I've got an error: > # /etc/init.d/alsasound restart > * Caching service dependencies ... > : command not foundne 6: > : command not foundne 14: > : command not foundne 6: > : command not foundne 14: > : command not foundne 6: > : command not foundne 14: > : command not foundne 6: > : command not foundne > 14: > [ ok ] /etc/init.d/alsasound: line 216: unexpected EOF while looking > for matching `"' /etc/init.d/alsasound: line 226: syntax error: > unexpected end of file > * ERROR: /etc/init.d/alsasound has syntax errors in it; aborting ... > > I tested the line in isolation and it put the sound card numbers into the CARDS array. Obviously, the double quote is necessary and I'll have to have another look at the script as a whole. I'll reply again when I have something. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user