summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-08-10 21:57:20 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-08-10 21:57:20 +0200
commitfcadb37020a62c96213327873faa68998559cf2a (patch)
treebfb51ac6489eac22ad2fbbc1bb4af6d68db144d1
parent48316772d3c0cf95da2987ab83d8ee47c67e12d8 (diff)
downloadbin-fcadb37020a62c96213327873faa68998559cf2a.tar.gz
bin-fcadb37020a62c96213327873faa68998559cf2a.tar.xz
use variable instead of hostname cmd
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xsysinfo2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysinfo b/sysinfo
index 8a7500a..ea285d7 100755
--- a/sysinfo
+++ b/sysinfo
@@ -5,7 +5,7 @@ NC="\e[0m"
clear
cat /etc/motd
echo
-echo -e "${BLUE}Host:${NC} $(hostname)"
+echo -e "${BLUE}Host:${NC} $HOST"
echo -e "${BLUE}Uptime:$NC ${${$(uptime)%%,*}##*up }, ${$(</proc/loadavg)% *}"
if [ -x /usr/bin/fortune ]; then