Cache lspci Output #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
get_storage_controllers() calls lspci every time
lspci 2>/dev/null | grep -iE "SAS|SATA|RAID|Mass storage|NVMe"
Optimization: Call once at script start, store in variable.