From d896c29942200692e74390d475dbcf1a76280d32 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Wed, 4 Jan 2017 10:53:43 +0700 Subject: [PATCH] Local IP: Added support for AIX --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index f08f808a..23a296c0 100755 --- a/neofetch +++ b/neofetch @@ -1778,9 +1778,9 @@ get_battery() { get_local_ip() { case "$os" in - "Linux" | "BSD" | "Solaris") + "Linux" | "BSD" | "Solaris" | "AIX") local_ip="$(ip route get 1 | awk '{print $NF;exit}')" - [[ -z "$local_ip" ]] && local_ip="$(ifconfig | awk '/broadcast/ {print $2}')" + [[ -z "$local_ip" ]] && local_ip="$(ifconfig -a | awk '/broadcast/ {print $2; exit}')" ;; "MINIX")