From 80ca8d96fcc66b48f0e61358ce0e6eaf24b7656c Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Mon, 12 Dec 2016 13:31:47 -0600 Subject: [PATCH] scan-netdev working --- scripts/scan-netdev | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/scan-netdev diff --git a/scripts/scan-netdev b/scripts/scan-netdev new file mode 100755 index 0000000..850e74a --- /dev/null +++ b/scripts/scan-netdev @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ -z $OUTPUT_DIR ] ; then + source scan-dmidecode +fi + +for DEV in \ +`cat /proc/net/dev | grep ':' | cut -d ':' -f 1` +do + echo -n "$DEV " >> $OUTPUT_DIR/netdev.lst + ethtool -P $DEV >> $OUTPUT_DIR/netdev.lst +done +