scan-netdev working

This commit is contained in:
Sandino Araico Sanchez 2016-12-12 13:31:47 -06:00
parent 87138fca24
commit 80ca8d96fc

13
scripts/scan-netdev Executable file
View file

@ -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