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 +