Local IP [IRIX]: Added initial support
This commit is contained in:
parent
a3af0a3f3e
commit
05171be3a1
2
neofetch
2
neofetch
|
@ -1936,7 +1936,7 @@ get_battery() {
|
||||||
|
|
||||||
get_local_ip() {
|
get_local_ip() {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux" | "BSD" | "Solaris" | "AIX")
|
"Linux" | "BSD" | "Solaris" | "AIX" | "IRIX")
|
||||||
local_ip="$(ip route get 1 | awk -F'src' '{print $2; exit}')"
|
local_ip="$(ip route get 1 | awk -F'src' '{print $2; exit}')"
|
||||||
local_ip="${local_ip/uid*}"
|
local_ip="${local_ip/uid*}"
|
||||||
[[ -z "$local_ip" ]] && local_ip="$(ifconfig -a | awk '/broadcast/ {print $2; exit}')"
|
[[ -z "$local_ip" ]] && local_ip="$(ifconfig -a | awk '/broadcast/ {print $2; exit}')"
|
||||||
|
|
Reference in New Issue