Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xsos
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ fi

# XSOS_LSPCI_NET_REGEX (str: regular expression)
# Configures what LSPCI() uses to search for peripherals under the "Net" heading
: ${XSOS_LSPCI_NET_REGEX:="(Ethernet controller|Network controller|InfiniBand)( \[[0-9]{4}\])?:"}
: ${XSOS_LSPCI_NET_REGEX:="(Ethernet controller|Network controller|InfiniBand)( \[[0-9]{4}\])?"}

# XSOS_LSPCI_STORAGE_REGEX (str: regular expression)
# Configures what LSPCI() uses to search for peripherals under the "Storage" heading
Expand Down Expand Up @@ -2024,7 +2024,7 @@ LSPCI() {

_parse_periphs() {
local regex=${1}
gawk -vH_IMP="${c[Imp]}" -vH2="${c[H2]}" -vH0="${c[0]}" "
gawk -v IGNORECASE=1 -vH_IMP="${c[Imp]}" -vH2="${c[H2]}" -vH0="${c[0]}" "
/${regex}/"'{
# Save
split($1, slot, ":")
Expand Down