From ab4a73401459f2b5bfcaf702cc9c4b8a1cb7c588 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 28 Sep 2010 13:54:18 +0000 Subject: [PATCH] -Remove leading space in discovery packets git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7701 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot/overlay/bin/dodestiny | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-nbroot/overlay/bin/dodestiny b/xCAT-nbroot/overlay/bin/dodestiny index 7cf41cdc1..a1a2c725f 100755 --- a/xCAT-nbroot/overlay/bin/dodestiny +++ b/xCAT-nbroot/overlay/bin/dodestiny @@ -66,8 +66,8 @@ while :; do SERIAL=`(/bin/vpddecode|grep "Box Serial" || echo "unknown unknown unknown: unknown")|awk '{print $4}'` fi if [ "$MTM" == "unknown" -a -x /bin/dmidecode ]; then #This gets a bit hackish... iDataplex - MTM=`dmidecode |grep -A4 "^System Information"|grep "Product Name"|awk -F'[' '{print $2}'|awk -F']' '{print $1}'|head -n 1` - SERIAL=`dmidecode |grep -A4 "^System Information"|grep "Serial Number"|awk -F: '{print $2}'|head -n 1` + MTM=`dmidecode |grep -A4 "^System Information"|grep "Product Name"|awk -F'[' '{print $2}'|awk -F']' '{print $1}'|head -n 1|sed -e 's/^ //'` + SERIAL=`dmidecode |grep -A4 "^System Information"|grep "Serial Number"|awk -F: '{print $2}'|head -n 1|sed -e 's/^ //'` fi if [ -r /proc/device-tree/model ]; then MTM=`cat /proc/device-tree/model |awk -F, '{print $2}'`