summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsysinfo8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysinfo b/sysinfo
index ea285d7..6be8e33 100755
--- a/sysinfo
+++ b/sysinfo
@@ -3,8 +3,12 @@ BLUE="\e[1;34m"
NC="\e[0m"
clear
-cat /etc/motd
-echo
+
+if [[ -e /etc/motd ]]; then
+ cat /etc/motd
+ echo
+fi
+
echo -e "${BLUE}Host:${NC} $HOST"
echo -e "${BLUE}Uptime:$NC ${${$(uptime)%%,*}##*up }, ${$(</proc/loadavg)% *}"