others: mymotd: code improvements, thanks to @WildFireSG

arm-sdk7
pedro 4 years ago
parent 7d518fdbc4
commit b64feaa0c2

@ -64,7 +64,8 @@
/bin/echo -e "\033[1;34m ======================================================== \033[0m"
/bin/echo -e "\033[1;32m Welcome to the $(NV t_model_name) [$(NV router_name)]\033[0m"
/bin/echo -e "\033[1;31m Uptime: $(/usr/bin/uptime | /bin/sed -e 's/, load/\n Load/')\033[0m"
/bin/echo -e "\033[1;31m Date: $(/bin/date | awk '{print $1 " " $2 " " $3 " " $6}')\033[0m"
/bin/echo -e "\033[1;31m Time:$(/usr/bin/uptime | /bin/sed -e 's/, load/\n Load/')\033[0m"
[ "$(NV t_cafree)" -eq 1 ] && {
/usr/bin/awk '/MemTotal:/{total=$2} /MemFree:/{free=$2} /Buffers:/{buffers=$2} /^Cached:/{cached=$2} END{ \

Loading…
Cancel
Save