added uptime to inventory.
[feisty_meow.git] / scripts / core / i.sh
index 0b01bd5a172d8ef3e1f7eee9d22c5fa0ef6de9fa..fd2fd7350fa0b10efd15376dcc582eab8eb8bd36 100644 (file)
@@ -2,30 +2,29 @@
 
 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
 
-(
-echo '###############################################################################'
+echo '=============='
 echo
 echo Your user name is $USER on a computer named $(hostname).
 echo Your machine platform is $(uname -m)
+echo -n Uptime: 
+uptime
 if [ $OPERATING_SYSTEM == "UNIX" ]; then
-  lsb_release -a
+  which lsb_release &>/dev/null
+  if [ $? -eq 0 ]; then
+    lsb_release -a
+  fi
 fi
 echo The time is $(date_stringer | sed -e 's/_/ /g' | sed -e 's/\([0-9][0-9]\) \([0-9][0-9]\)$/:\1:\2/')
 echo
-echo '###############################################################################'
+echo '=============='
 echo
 echo You have the following files here:
 ls -FC
 echo
-echo '###############################################################################'
+echo '=============='
 echo
 echo You are sharing the machine with:
 who
 echo
-echo '###############################################################################'
-echo
-echo You are running the following processes:
-. $FEISTY_MEOW_SCRIPTS/users/findme.sh
-echo
-echo '###############################################################################'
-) | less
+echo '=============='
+