mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 10:19:53 +07:00
network: update automated
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
88761b2cfd
commit
3cf4385250
@ -63,11 +63,11 @@ function autogetnet() {
|
|||||||
if [ "${ARCPATCH}" = "true" ]; then
|
if [ "${ARCPATCH}" = "true" ]; then
|
||||||
ARCMACNUM=1
|
ARCMACNUM=1
|
||||||
for ETH in ${ETHX}; do
|
for ETH in ${ETHX}; do
|
||||||
ARCMAC="$(readModelKey "${MODEL}" "arc.mac${ARCMACNUM}")"
|
ARCMAC=""
|
||||||
|
ARCMAC="$(readConfigKey "${MODEL}.mac${ARCMACNUM}" "${S_FILE}")"
|
||||||
[ -n "${ARCMAC}" ] && writeConfigKey "mac.${ETH}" "${ARCMAC}" "${USER_CONFIG_FILE}"
|
[ -n "${ARCMAC}" ] && writeConfigKey "mac.${ETH}" "${ARCMAC}" "${USER_CONFIG_FILE}"
|
||||||
[ -z "${ARCMAC}" ] && break
|
[ -z "${ARCMAC}" ] && break
|
||||||
ARCMACNUM=$((${ARCMACNUM} + 1))
|
ARCMACNUM=$((${ARCMACNUM} + 1))
|
||||||
ARCMAC=""
|
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
ETHN=$(ls /sys/class/net/ 2>/dev/null | grep eth | wc -l)
|
ETHN=$(ls /sys/class/net/ 2>/dev/null | grep eth | wc -l)
|
||||||
|
Loading…
Reference in New Issue
Block a user