Some monor changes..

This commit is contained in:
Christoph 2019-09-04 17:40:30 +02:00
parent e4775f2155
commit 0f72f2419a
2 changed files with 27 additions and 0 deletions

View File

@ -99,6 +99,20 @@ else
source $conf_post_declarations source $conf_post_declarations
fi fi
# ---
# - IPv6 Addresses Gateway
# ---
#_ips="$(ip -6 a | grep "inet6 " | awk '{print$2}' | cut -d'/' -f1)"
_ips="$(ip -6 a | grep "inet6 " | grep -v -E "(\s+fd|\s+fe80)" | awk '{print$2}' | cut -d'/' -f1)"
declare -a gateway_ipv6_address_arr=()
if [[ -n "$_ips" ]] ; then
for _ip in $_ips ; do
gateway_ipv6_address_arr+=("$_ip")
done
fi
echo echo
if $terminal ; then if $terminal ; then

View File

@ -99,6 +99,19 @@ else
source $conf_post_declarations source $conf_post_declarations
fi fi
# ---
# - IPv4 Addresses Gateway
# ---
_ips="$(ip -4 a | grep "inet " | awk '{print$2}' | cut -d'/' -f1)"
declare -a gateway_ipv4_address_arr=()
if [[ -n "$_ips" ]] ; then
for _ip in $_ips ; do
gateway_ipv4_address_arr+=("$_ip")
done
fi
echo echo
if $terminal ; then if $terminal ; then