mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 08:35:25 +00:00
added break to the loop now that it's getting so long for usb network, at this point only supporing a single usb network device, have to draw
a line at fringes I think.
This commit is contained in:
parent
f74ca21138
commit
ab23b48ae1
1
inxi
1
inxi
|
@ -3345,6 +3345,7 @@ get_networking_data()
|
||||||
if [[ -n $( grep -isE "$needle" <<< "$lsusb_data" | \
|
if [[ -n $( grep -isE "$needle" <<< "$lsusb_data" | \
|
||||||
grep -Eisv '(bluetooth| hub|keyboard|mouse|printer| ps2|reader|scan|storage' ) ]];then
|
grep -Eisv '(bluetooth| hub|keyboard|mouse|printer| ps2|reader|scan|storage' ) ]];then
|
||||||
card_data=$( grep -isE "$needle" <<< "$lsusb_data" )
|
card_data=$( grep -isE "$needle" <<< "$lsusb_data" )
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
log_function_data 'raw' "lsusb_data:\n$lsusb_data\ncard_data:$card_data"
|
log_function_data 'raw' "lsusb_data:\n$lsusb_data\ncard_data:$card_data"
|
||||||
|
|
Loading…
Reference in a new issue