Skip to contentSkip to conversation

Several problems when trying to run alsa-info.sh

alsa-devel Rolf Eike Beer 2 participants 2 messages Nov 12, 2019

lore
Share & tools
lore
#0 lore raw

Greetings,

I had the need to run alsa-info.sh --stdout from 1.1.9 on our embedded device. There were multiple things I noticed:

-it requires /bin/bash, but seems to run ok with just /bin/sh. We don't have bash.

-it requires pgrep, which we don't have, but replacing all calls with pidof seems to work well enough

-it requires whereis, and does not use that

-at least in stdout mode the absence of lspci should not be a fatal error

Greetings

Eike

Signature · 7 lines
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Gothaer Platz 3, 37083 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055

emlix - smart embedded open source

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#1 lore raw

Dne 12. 11. 19 v 8:37 Rolf Eike Beer napsal(a):

Quoted 11 lines

Greetings,

I had the need to run alsa-info.sh --stdout from 1.1.9 on our embedded device. There were multiple things I noticed:

-it requires /bin/bash, but seems to run ok with just /bin/sh. We don't have bash.

-it requires pgrep, which we don't have, but replacing all calls with pidof seems to work well enough

Review

Quoted 3 lines
(quoted diff) +0 -2
-it requires whereis, and does not use that
 
-at least in stdout mode the absence of lspci should not be a fatal error

Patches are welcome.

Jaroslav

Signature · 6 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel