From 1dd79acd7c97acde421e7b0f9495c440f917b886 Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Sun, 17 May 2020 17:40:39 +0300 Subject: [PATCH] comment --- macos-guest-virtualbox.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index d8ccbf7..6b41441 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -505,8 +505,8 @@ function generate_nvram_bin_file() { local datasize="$(printf "${datasize}" | xxd -r -p | od -tx4 -N4 -An --endian=little)" # guid string-of-hex-bytes is five fields, 8+4+4+4+12 nibbles long # first three are little-endian, last two big-endian - # for example, 00112233-4455-6677-8899-AABBCCDDEEFF - # is stored as 33221100-5544-7766-8899-AABBCCDDEEFF + # for example, 0F1A2B3C-4D5E-6A7B-8C9D-A1B2C3D4E5F6 + # is stored as 3C2B1A0F-5E4D-7B6A-8C9D-A1B2C3D4E5F6 local g="$( printf -- "${3}" | xxd -r -p | xxd -p )" # strip spaces etc local guid="${g:6:2} ${g:4:2} ${g:2:2} ${g:0:2} ${g:10:2} ${g:8:2} ${g:14:2} ${g:12:2} ${g:16:16}" # attributes in four bytes little-endian