diff --git a/xCAT-server/share/xcat/scripts/genduiduuid.sh b/xCAT-server/share/xcat/scripts/genduiduuid.sh index e9bf49317..a0393a407 100644 --- a/xCAT-server/share/xcat/scripts/genduiduuid.sh +++ b/xCAT-server/share/xcat/scripts/genduiduuid.sh @@ -1,7 +1,7 @@ if [ ! -r /etc/redhat-release ] || ! grep "release 6" /etc/redhat-release >/dev/null; then exit 0; #only rhel6 supported fi -if [ -r /sys/devices/virtual/dmi/id/product_uuid ]; then +if [ -r /sys/devices/virtual/dmi/id/product_uuid ]; then duid='default-duid "\000\004'; for i in `sed -e 's/\(..\)\(..\)\(..\)\(..\)-\(..\)\(..\)-\(..\)\(..\)/\4\3\2\1-\6\5-\8\7/;s/-//g;s/\(..\)/\1 /g' /sys/devices/virtual/dmi/id/product_uuid`; do num=`printf "%d" 0x$i`