mirror of
https://github.com/sickcodes/osx-serial-generator
synced 2024-11-21 14:29:10 -07:00
ROM is type mdata, which is base64'd
This commit is contained in:
parent
097eb8eb35
commit
44f47fc8a0
2 changed files with 3 additions and 1 deletions
|
@ -245,7 +245,8 @@ generate_bootdisk () {
|
|||
&& [ "${UUID}" ] \
|
||||
&& [ "${MAC_ADDRESS}" ]; then
|
||||
ROM="${MAC_ADDRESS//\:/}"
|
||||
ROM="${ROM,,}"
|
||||
ROM="$(awk '{print tolower($0)}' <<< "${ROM}")"
|
||||
ROM="$(base64 <<< "${ROM}")"
|
||||
sed -e s/\{\{DEVICE_MODEL\}\}/"${DEVICE_MODEL}"/g \
|
||||
-e s/\{\{SERIAL\}\}/"${SERIAL}"/g \
|
||||
-e s/\{\{BOARD_SERIAL\}\}/"${BOARD_SERIAL}"/g \
|
||||
|
|
|
@ -338,6 +338,7 @@ EOF
|
|||
source "${OUTPUT_ENV_FILE}"
|
||||
ROM="${MAC_ADDRESS//\:/}"
|
||||
ROM="$(awk '{print tolower($0)}' <<< "${ROM}")"
|
||||
ROM="$(base64 <<< "${ROM}")"
|
||||
sed -e s/\{\{DEVICE_MODEL\}\}/"${DEVICE_MODEL}"/g \
|
||||
-e s/\{\{SERIAL\}\}/"${SERIAL}"/g \
|
||||
-e s/\{\{BOARD_SERIAL\}\}/"${BOARD_SERIAL}"/g \
|
||||
|
|
Loading…
Reference in a new issue