Fix error in determin gatewa ip address (local_gw_address).
This commit is contained in:
parent
6bde0e7c07
commit
156fe900af
@ -308,7 +308,7 @@ while ! $configured && [ $_try_number -lt $max_attempts ] ; do
|
||||
|
||||
## - Is the device present and has local Address ?
|
||||
## -
|
||||
local_gw_address="$(ip addr show $inet_device 2> /dev/null | grep inet | awk '{print$2}')"
|
||||
local_gw_address="$(ip addr show $inet_device 2> /dev/null | grep inet | awk '{print$2}' | cut -d '/' -f1)"
|
||||
if [ -z $local_gw_address ]; then
|
||||
if $LOGGING_CONSOLE ; then
|
||||
echo -e "\n\t[ Error ]: Connection at interface \"$inet_device\" seems to be down !"
|
||||
|
Loading…
Reference in New Issue
Block a user