atarallo / TECMINT_MONITOR

A Shell Script to Monitor Network, Disk Usage, Uptime, Load Average and RAM Usage in Linux. Originally published on http://www.tecmint.com
Apache License 2.0
248 stars 145 forks source link

OS variable used twice #28

Closed Sim4n6 closed 5 years ago

Sim4n6 commented 8 years ago

OS variable used twice with uname -s and uname -o , please check that

atarallo commented 8 years ago

Both switches output different information. The -s outputs the kernel name. The -o outputs the operating systems name.

The OS variable is loaded first with the kernel name, this is used to load other variables. Latter is used to output the Operating system name.

Maybe we should load the data in separated variables.

Sim4n6 commented 8 years ago

right, in separated variables, just renaming one , either the first or the last, it is up to you