Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-05-11 15:42:34 +02:00
parent ab40ee4e8e
commit 3b93527d9b
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ function generateSerial() {
# 2 - Amount of MACs to generate
# Returns serial number
function generateMacAddress() {
ID="$(readModelKey "${1}" "id")"
ID="$(readConfigKey "model" "${USER_CONFIG_FILE}")"
MACPRE="$(readConfigKey "${ID}.macpre" "${S_FILE}")"
MACSUF="$(printf '%02x%02x%02x' $((${RANDOM} % 256)) $((${RANDOM} % 256)) $((${RANDOM} % 256)))"
NUM=${2:-1}

View File

@ -30,7 +30,7 @@ KEYMAP="$(readConfigKey "keymap" "${USER_CONFIG_FILE}")"
LKM="$(readConfigKey "lkm" "${USER_CONFIG_FILE}")"
if [ -n "${MODEL}" ]; then
PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")"
DT="$(readModelKey "${MODEL}" "dt")"
DT="$(readConfigKey "platforms.${PLATFORM}.dt" "${P_FILE}")"
fi
# Get Arc Data from Config