From c58b02fa9413c6f4ee0e45fefa3f0442861707ac Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 17 Nov 2004 23:47:49 +0000 Subject: [PATCH] fix for systems where ipv6 is enabled --- ipmitool/contrib/bmclanconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmitool/contrib/bmclanconf b/ipmitool/contrib/bmclanconf index 0e427be..efee7d0 100755 --- a/ipmitool/contrib/bmclanconf +++ b/ipmitool/contrib/bmclanconf @@ -248,7 +248,7 @@ case `uname -s` in Linux) if [ X$IFACE != X ]; then if [ X$IP_ADDRESS = X ]; then - IP_ADDRESS=`$IFCONFIG $IFACE | grep inet | awk -F"[:[:space:]]+" '{print $4}'` + IP_ADDRESS=`$IFCONFIG $IFACE | grep "inet addr" | awk -F"[:[:space:]]+" '{print $4}'` fi if [ X$IP_NETMASK = X ]; then IP_NETMASK=`$IFCONFIG $IFACE | grep Bcast | awk -F"[:[:space:]]+" '{print $8}'`