fixed macs array getting cleared as it was built
This commit is contained in:
parent
f6bcfc9a4c
commit
45085f2393
1 changed files with 0 additions and 1 deletions
|
|
@ -800,7 +800,6 @@ for device in $(ls /sys/class/net/ 2>/dev/null | grep -v "$filtered_adapters");
|
|||
ifups+=("down")
|
||||
fi
|
||||
if [ -f /sys/class/net/${device}/address ]; then
|
||||
macs=()
|
||||
macs+=("$(cat /sys/class/net/${device}/address)")
|
||||
else
|
||||
macs+=("unknown")
|
||||
|
|
|
|||
Loading…
Reference in a new issue