[PC-BSD Commits] r5287 - pcbsd/trunk/pc-sysinstall/backend-query
svn at pcbsd.org
svn at pcbsd.org
Tue Dec 8 07:06:26 PST 2009
Author: kris
Date: 2009-12-08 07:06:26 -0800 (Tue, 08 Dec 2009)
New Revision: 5287
Modified:
pcbsd/trunk/pc-sysinstall/backend-query/detect-nics.sh
Log:
Fixed potential bug in nic detection, when too much info is in dmesg
Modified: pcbsd/trunk/pc-sysinstall/backend-query/detect-nics.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend-query/detect-nics.sh 2009-12-08 14:58:04 UTC (rev 5286)
+++ pcbsd/trunk/pc-sysinstall/backend-query/detect-nics.sh 2009-12-08 15:06:26 UTC (rev 5287)
@@ -10,7 +10,7 @@
echo "${i}" | grep -e "lo0" -e "^fwe" -e "^fwip" -e "lo1" -e "^plip" -e "^pfsync" -e "^pflog" -e "^tun" >/dev/null 2>/dev/null
if [ "$?" != "0" ]
then
- IDENT="<`dmesg | grep ^${i} | grep -v "miibus" | grep '<' | cut -d '<' -f 2 | cut -d '>' -f 1`>"
+ IDENT="<`dmesg | grep ^${i} | grep -v "miibus" | grep '<' | cut -d '<' -f 2 | cut -d '>' -f 1`> | head -1"
echo "${i}: $IDENT"
fi
done
More information about the Commits
mailing list