mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 02:39:52 +07:00
arc: fix
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
ab40ee4e8e
commit
3b93527d9b
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user