scan-netdev working
This commit is contained in:
parent
87138fca24
commit
80ca8d96fc
1 changed files with 13 additions and 0 deletions
13
scripts/scan-netdev
Executable file
13
scripts/scan-netdev
Executable 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
|
||||
|
Loading…
Reference in a new issue