@@ -466,7 +466,7 @@ if [[ -n "$GET_N_NETWORK_INFO" || -n "$GET_ALL_INFO" ]]; then
for((c=1; c<=NUM_DEVS; c++ ))## Run this loop for each interface.
do
WORKING_INTERFACE=$(find /sys/class/net -type l | sed"${c}q;d" | cut-d"/"-f 5)## Select working interface from the list of interfaces
if[-e /sys/class/net/${WORKING_INTERFACE}/operstate ];then STATUS=$(cat /sys/class/net/"${WORKING_INTERFACE}"/operstate)## Status up, down or unknown
if[-e /sys/class/net/"${WORKING_INTERFACE}"/operstate ];then STATUS=$(cat /sys/class/net/"${WORKING_INTERFACE}"/operstate)## Status up, down or unknown
else STATUS="unknown";fi
MAC=$(cat /sys/class/net/"${WORKING_INTERFACE}"/address)## MAC address of the inteface.