Local IP [Minix]: Deleted case in Linux/BSD/Solaris' local_ip

This commit is contained in:
Muhammad Herdiansyah 2016-12-19 10:42:50 +07:00
parent 61f21f8762
commit 6e7dfef790
1 changed files with 1 additions and 1 deletions

View File

@ -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}')"
;;