From 127ee70123f7e9b05fceac6b5d2012b074571649 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 31 Dec 2017 23:59:59 +0000 Subject: [PATCH] Remove trailing spaces in file xCAT-server/share/xcat/scripts/genduiduuid.sh --- xCAT-server/share/xcat/scripts/genduiduuid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`