Made -v3 show hard disk names, and -v2 networking information, this gives 3 an actual function, which it didn't have

before.

Updated help to show this.
This commit is contained in:
inxi-svn 2008-11-01 21:55:12 +00:00
parent 1347c67edf
commit e4cef81a8a

11
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 0.3.2
#### version: 0.3.3
#### Date: November 1 2008
########################################################################
#### inxi is a fork of infobash, the original bash sys info script by locsmif
@ -498,9 +498,10 @@ show_options()
print_screen_output " Supported levels: 0-${VERBOSITY_LEVELS} Example: $SCRIPT_NAME -v 4"
print_screen_output " 0 - short output, same as using nothing: $SCRIPT_NAME"
print_screen_output " 1 - basic verbose, same as: $SCRIPT_NAME -d"
print_screen_output " 2,3 - Show networking card data; Show hard disk names as detected."
print_screen_output " 4 - Show partition size/filled data for (if present):/, /home, /var/, /boot"
print_screen_output " 5 - For multicore systems, show per core clock speeds."
print_screen_output " 2 - Also show networking card data"
print_screen_output " 3 - Also show hard disk names as detected."
print_screen_output " 4 - Also show partition size/filled data for (if present):/, /home, /var/, /boot"
print_screen_output " 5 - For multicore systems, also show per core clock speeds."
print_screen_output "-V $SCRIPT_NAME version information. Prints information then exits."
print_screen_output ""
}
@ -1400,7 +1401,7 @@ print_hard_disk_data()
local root_home_data="$( df -h -T | egrep '(/|/boot|/var|/home)$' | C1=${C1} C2=${C2} awk '{print ENVIRON["C1"]"Partition:"ENVIRON["C2"], $7, ENVIRON["C1"]"- ", ENVIRON["C1"]"size:"ENVIRON["C2"], $3, ENVIRON["C1"]"used:"ENVIRON["C2"], $4, "(", $6, ")"}' )"
root_home_data=$( echo $root_home_data ) # get rid of linebreaks
if [ "$VERBOSITY_LEVEL" -ge 2 ];then
if [ "$VERBOSITY_LEVEL" -ge 3 ];then
hdd_data=$( create_print_line "Disks:" "${C1}HDD${C2}${hdd_model} ${C1}Size${C2} ${hdd_capacity} (${hdd_used})${CN}" )
else
hdd_data=$( create_print_line "Disks:" "${C1}HDD Size${C2} ${hdd_capacity} (${hdd_used})${CN}" )