mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 22:09:53 +07:00
arc-functions: read correct mac for IP
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
8ccf7d39fd
commit
acdcd2c63c
@ -1494,7 +1494,7 @@ function credits() {
|
||||
function staticIPMenu() {
|
||||
ETHX="$(ls /sys/class/net/ 2>/dev/null | grep eth)"
|
||||
for ETH in ${ETHX}; do
|
||||
MACR="$(cat /sys/class/net/${ETH}/address 2>/dev/null | sed 's/://g')"
|
||||
MACR="$(cat /sys/class/net/${ETH}/address 2>/dev/null | sed 's/://g' | tr '[:lower:]' '[:upper:]')"
|
||||
IPR="$(readConfigKey "network.${MACR}" "${USER_CONFIG_FILE}")"
|
||||
IFS='/' read -r -a IPRA <<<"$IPR"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user