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:
parent
b3d72c622b
commit
127ee70123
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user