From 3c139a074dd1dfc827d58ed6bf5cb8cf96026b50 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 17 May 2011 13:54:48 +0000 Subject: [PATCH] Fix genduiduuid.sh to work without concern over ISC code treating a printable character specially git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9614 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/scripts/genduiduuid.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server/share/xcat/scripts/genduiduuid.sh b/xCAT-server/share/xcat/scripts/genduiduuid.sh index 697e73ac3..3def18f84 100644 --- a/xCAT-server/share/xcat/scripts/genduiduuid.sh +++ b/xCAT-server/share/xcat/scripts/genduiduuid.sh @@ -6,9 +6,10 @@ if [ -r /sys/devices/virtual/dmi/id/product_uuid ]; then for i in `sed -e s/-//g -e 's/\(..\)/\1 /g' /sys/devices/virtual/dmi/id/product_uuid`; do num=`printf "%d" 0x$i` octnum=`printf "\\%03o" 0x$i` - if [ $num -lt 127 -a $num -gt 34 ]; then - octnum=`printf $octnum` - fi +#Instead of hoping to be inside printable case, just make them all octal codes +# if [ $num -lt 127 -a $num -gt 34 ]; then +# octnum=`printf $octnum` +# fi duid=$duid$octnum done duid=$duid'";'