From e4befe9959542bce6d569c9b0a658d8bf72fe4b8 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 13 May 2014 09:06:51 -0400 Subject: [PATCH] defect 4091 --- xCAT/postscripts/updatenetwork | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/updatenetwork b/xCAT/postscripts/updatenetwork index 40d76a51d..d1bcd6a4c 100644 --- a/xCAT/postscripts/updatenetwork +++ b/xCAT/postscripts/updatenetwork @@ -11,7 +11,8 @@ hostname $HOSTNAME #write the config files, the device name may change after reboot #so use the dhcp for all interface -device_names=`ifconfig -a | grep -i hwaddr | grep -i 'Ethernet' | grep -v usb| awk '{print $1}'` +#device_names=`ifconfig -a | grep -i hwaddr | grep -i 'Ethernet' | grep -v usb| awk '{print $1}'` +device_names=`ip link |grep "BROADCAST" |awk '{print $2}' | sed s/://` str_cfg_file='' if [ -d "/etc/sysconfig/network-scripts/" ];then #redhat