mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
tweak
This commit is contained in:
parent
b43667f58f
commit
a7f84fec15
3
inxi
3
inxi
|
@ -1379,7 +1379,8 @@ get_audio_data()
|
|||
|
||||
# alsa usb
|
||||
# for every sound card symlink in /proc/asound - display information about it
|
||||
for usb_proc_file in /proc/asound/*; do
|
||||
for usb_proc_file in /proc/asound/*
|
||||
do
|
||||
# if lsusb exists, the file is a symlink, and contains an important usb exclusive file: continue
|
||||
if [[ -n "$( which lsusb )" && -L "$usb_proc_file" && -e "$usb_proc_file/usbid" ]]; then
|
||||
# send error messages of lsusb to /dev/null as it will display a bunch if not a super user
|
||||
|
|
Loading…
Reference in a new issue