Local IP [Minix]: Deleted case in Linux/BSD/Solaris' local_ip
This commit is contained in:
parent
61f21f8762
commit
6e7dfef790
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1658,7 +1658,7 @@ get_battery() {
|
|||
|
||||
get_local_ip() {
|
||||
case "$os" in
|
||||
"Linux" | "BSD" | "Solaris" | "MINIX")
|
||||
"Linux" | "BSD" | "Solaris")
|
||||
local_ip="$(ip route get 1 | awk '{print $NF;exit}')"
|
||||
[[ -z "$local_ip" ]] && local_ip="$(ifconfig | awk '/broadcast/ {print $2}')"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue