mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 23:59:53 +07:00
network: fix syntax
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
935f77255f
commit
61dd7f0d7c
@ -6,13 +6,13 @@ function getnet() {
|
||||
NICPORTS="$(readConfigKey "${MODEL}.ports" "${S_FILE}" 2>/dev/null)"
|
||||
if [ "${ARCPATCH}" == "true" ]; then
|
||||
ETHN="$(echo ${ETHX} | wc -w)"
|
||||
MACS=($(generateMacAddress "${MODEL}" ${ETHN} true))
|
||||
MACS=($(generateMacAddress "${MODEL}" "${ETHN}" true))
|
||||
for I in $(seq 1 ${ETHN}); do
|
||||
writeConfigKey "eth$((${I} - 1))" "${MACS[$((${I} - 1))]}" "${USER_CONFIG_FILE}"
|
||||
done
|
||||
elif [ "${ARCPATCH}" == "false" ]; then
|
||||
ETHN="$(echo ${ETHX} | wc -w)"
|
||||
MACS=($(generateMacAddress "${MODEL}" ${ETHN} false))
|
||||
MACS=($(generateMacAddress "${MODEL}" "${ETHN}" false))
|
||||
for I in $(seq 1 ${ETHN}); do
|
||||
writeConfigKey "eth$((${I} - 1))" "${MACS[$((${I} - 1))]}" "${USER_CONFIG_FILE}"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user