mirror of
https://github.com/sickcodes/osx-serial-generator.git
synced 2025-01-29 17:08:25 +00:00
ROM is type mdata, which is base64'd
This commit is contained in:
parent
097eb8eb35
commit
44f47fc8a0
|
@ -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