fixed missing array declaration
This commit is contained in:
parent
f7c4c892b9
commit
7bc614d8c1
1 changed files with 3 additions and 3 deletions
|
|
@ -10,8 +10,8 @@
|
||||||
# Enhanced for multi-distro compatibility #
|
# Enhanced for multi-distro compatibility #
|
||||||
###############################################################
|
###############################################################
|
||||||
|
|
||||||
quickinfo_version=3.0.0
|
quickinfo_version=4.0.0
|
||||||
prbl_functons_req_ver=2.0.0
|
prbl_functons_req_ver=2.1.0
|
||||||
|
|
||||||
# Source PRbL Functions locally or retrieve from online
|
# Source PRbL Functions locally or retrieve from online
|
||||||
if [ ! -z $prbl_functions ] ; then
|
if [ ! -z $prbl_functions ] ; then
|
||||||
|
|
@ -732,7 +732,7 @@ for device in $(ls /sys/class/net/ 2>/dev/null | grep -v "$filtered_adapters");
|
||||||
ifups+=("down")
|
ifups+=("down")
|
||||||
fi
|
fi
|
||||||
if [ -f /sys/class/net/${device}/address ]; then
|
if [ -f /sys/class/net/${device}/address ]; then
|
||||||
macs
|
macs=()
|
||||||
macs+=("$(cat /sys/class/net/${device}/address)")
|
macs+=("$(cat /sys/class/net/${device}/address)")
|
||||||
else
|
else
|
||||||
macs+=("unknown")
|
macs+=("unknown")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue