inverted logic check to avoid collisions
This commit is contained in:
parent
778c98f276
commit
99b66e37d6
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
###############################################################
|
###############################################################
|
||||||
# MOTD/Login Quick Information script #
|
# MOTD/Login Quick Information script #
|
||||||
# This script pulls information from a variety of sources #
|
# This script pulls information from a variety of sources #
|
||||||
# in the a linux system, and agregates it into a small table #
|
# in the a linux system, and aggregates it into a small table #
|
||||||
# that is displayed upon terminal login to the system. #
|
# that is displayed upon terminal login to the system. #
|
||||||
# #
|
# #
|
||||||
# Written by Alan "pyr0ball" Weinstock #
|
# Written by Alan "pyr0ball" Weinstock #
|
||||||
|
|
@ -274,7 +274,7 @@ boxline "${bld}${unl}Location:${dfl} ${grn}${unl}$location${dfl}"
|
||||||
boxline ""
|
boxline ""
|
||||||
# Echo out network arrays
|
# Echo out network arrays
|
||||||
for((i=0; i<"${#adapters[@]}"; i++ )); do
|
for((i=0; i<"${#adapters[@]}"; i++ )); do
|
||||||
if [[ $show_disconnected == false ]] ; then
|
if [[ $show_disconnected != true ]] ; then
|
||||||
if [[ ${ifups[$i]} == up ]] ; then
|
if [[ ${ifups[$i]} == up ]] ; then
|
||||||
boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl}\t| ${blu}${macs[$i]}${dfl}"
|
boxline " ${adapters[$i]}: ${cyn}${ips[$i]}${dfl}\t| ${blu}${macs[$i]}${dfl}"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue