2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Remove trailing spaces in file xCAT-server/share/xcat/scripts/genduiduuid.sh

This commit is contained in:
GONG Jie 2017-12-31 23:59:59 +00:00
parent b3d72c622b
commit 127ee70123

View File

@ -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`