Some monor changes..
This commit is contained in:
parent
e4775f2155
commit
0f72f2419a
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user