mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-13 20:22:11 +00:00
Local IP [IRIX]: Added initial support
This commit is contained in:
2
neofetch
2
neofetch
@@ -1936,7 +1936,7 @@ get_battery() {
|
||||
|
||||
get_local_ip() {
|
||||
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="${local_ip/uid*}"
|
||||
[[ -z "$local_ip" ]] && local_ip="$(ifconfig -a | awk '/broadcast/ {print $2; exit}')"
|
||||
|
||||
Reference in New Issue
Block a user