usertools: check for lspci dependency
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 13 Nov 2018 16:06:26 +0000 (16:06 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 18 Nov 2018 23:03:52 +0000 (00:03 +0100)
commit1a5a9cb32a93da47fa6aa0da8407337feaf901f8
tree54aadfb68c858230a6ad3fcc913e5e8efd4f09db
parent5a5f4676eb93fa410b56df060a6d0c7603469f81
usertools: check for lspci dependency

On some distributions (such as CentOS 7) lspci may not be installed
by default, causing exceptions which are difficult to interpret.

Fix devbind script to check if lspci is installed at script startup.

Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Rami Rosen <roszenrami@gmail.com>
usertools/dpdk-devbind.py