Unverified Commit d99fe564 authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

bugfix

parent 3d7c6bc5
...@@ -1563,7 +1563,7 @@ TTY_X=$(($(stty size | awk '{print $2}')-6)) # determine terminal width ...@@ -1563,7 +1563,7 @@ TTY_X=$(($(stty size | awk '{print $2}')-6)) # determine terminal width
TTY_Y=$(($(stty size | awk '{print $1}')-6)) # determine terminal height TTY_Y=$(($(stty size | awk '{print $1}')-6)) # determine terminal height
distribution=$(lsb_release -cs) distribution=$(lsb_release -cs)
family=$(lsb_release -is) family=$(lsb_release -is)
DEFAULT_ADAPTER=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)') DEFAULT_ADAPTER=$(ip -4 route ls | grep default | tail -1 | grep -Po '(?<=dev )(\S+)')
serverIP=$(ip -4 addr show dev $DEFAULT_ADAPTER | awk '/inet/ {print $2}' | cut -d'/' -f1) serverIP=$(ip -4 addr show dev $DEFAULT_ADAPTER | awk '/inet/ {print $2}' | cut -d'/' -f1)
set ${serverIP//./ } set ${serverIP//./ }
SUBNET="$1.$2.$3." SUBNET="$1.$2.$3."
......
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