petroniopadilha/archsysinfo — pull request #1 by McNoggins (2014-06-19 15:12:55+00:00)
Title: Enhancement of archsysinfo 

I have integrated some modifications to the archsysinfo bash script.

* Using "lscpu" for processor speed. This command

> cat /proc/cpuinfo

does not always return the processor speed, especially on some arm processors. The following command

> lscpu

is now part of Arch Linux by default and it returns the correct information

* Using the following command so that the uptime is nicely formatted

> uptime -p

Here is an example of the output with the older version (on my Raspberry Pi)

+ OS: Arch Linux armv6l
# Hostname: alarmpi
### Kernel Release: 3.12.21-1-ARCH
##### Uptime: 11:08:59 (4)
###### Packages: 265
; #####; RAM: 66 MB / 184 MB
+##.##### Processor Type: ARMv6-compatible processor rev 7 (v6l)
+########## Processor Speed: ARMv6-compatible processor rev 7 (v6l)
#############; $EDITOR:
###############+ Root: / ()

And the new output (with the correct processor speed and uptime)

+ OS: Arch Linux armv6l
# Hostname: alarmpi
### Kernel Release: 3.12.21-1-ARCH
##### Uptime: 4 days, 3 hours, 7 minutes
###### Packages: 265
; #####; RAM: 66 MB / 184 MB
+##.##### Processor Type: ARMv6-compatible processor rev 7 (v6l)
+########## Processor Speed: 700.0000 MHz
#############; $EDITOR:
###############+ Root: / ()