diff --git a/update-motd.d/01-system b/update-motd.d/01-system index 589b7e4..bf2f06f 100755 --- a/update-motd.d/01-system +++ b/update-motd.d/01-system @@ -19,7 +19,7 @@ RESET='\033[0m' # ]]] # Vars definition [[[ HOSTNAME=$(hostname) -NET_ADDR=$(hostname -I) +NET_ADDR=$(ip -oneline -4 addr | awk 'BEGIN { ORS = " " } !/^[0-9]*: ?lo|link\/ether/ {print $4}') KERNEL_VER=$(uname -r) UPTIME=$(uptime | sed 's/.*up ([^,]*), .*/1/') CORE_NUMBER=$(grep -c "model name" /proc/cpuinfo)