Project

General

Profile

Download (401 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/bin/sh
2

    
3
rm /tmp/netCards 2>/dev/null
4
touch /tmp/netCards
5

    
6
config="`ifconfig -l`"
7

    
8
for i in $config
9
do
10
 echo "${i}" | grep -e "lo0" -e "^fwe" -e "^fwip" -e "lo1" -e "^plip" -e "^pfsync" -e "^pflog" -e "^tun" >/dev/null 2>/dev/null
11
 if [ "$?" != "0" ]
12
 then
13
   IDENT="<`dmesg | grep ^${i} | grep -v "miibus" | grep '<' | cut -d '<' -f 2 | cut -d '>' -f 1 | head -1`>"
14
   echo "${i}: $IDENT"
15
 fi
16
done
(2-2/20)