|
@ -8,6 +8,7 @@ |
|
|
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
|
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
|
|
|
|
|
|
|
info_config.sh |
|
|
info_config.sh |
|
|
|
|
|
info_distro.sh # for dev |
|
|
info_parms.sh |
|
|
info_parms.sh |
|
|
|
|
|
|
|
|
if [ ! -f "/bin/ip" ]; then |
|
|
if [ ! -f "/bin/ip" ]; then |
|
@ -20,11 +21,11 @@ getipwc=$(${ipcommand} -o -4 addr | awk '{print $4}' | grep -oe '\([0-9]\{1,3\}\ |
|
|
# Check if server has m ultiple IP addresses |
|
|
# Check if server has m ultiple IP addresses |
|
|
|
|
|
|
|
|
# If the ip variable is set by user |
|
|
# If the ip variable is set by user |
|
|
if [ "${ip}" != "0.0.0.0" ]||[ "${ip}" != "" ]; then |
|
|
if [ "${ip}" != "0.0.0.0" ]&&[ "${ip}" != "" ]; then |
|
|
queryip=( "${ip}" ) |
|
|
queryips=( "${ip}" ) |
|
|
# If ip is not set by user |
|
|
# If ip is not set by user |
|
|
else |
|
|
else |
|
|
queryip=( "${getip}" ) |
|
|
queryips=( "${getip}" ) |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
echo "###### DEV IP CHECK ######" |
|
|
echo "###### DEV IP CHECK ######" |
|
|