Commit 6e7dfef7 authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

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

parent 61f21f87
...@@ -1658,7 +1658,7 @@ get_battery() { ...@@ -1658,7 +1658,7 @@ get_battery() {
get_local_ip() { get_local_ip() {
case "$os" in case "$os" in
"Linux" | "BSD" | "Solaris" | "MINIX") "Linux" | "BSD" | "Solaris")
local_ip="$(ip route get 1 | awk '{print $NF;exit}')" 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 | awk '/broadcast/ {print $2}')"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment