mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
small change, with -xx, now inxi shows one driver per line, but shows the total disk space on a separate line
that makes it a bit more readable. New version number, new tarball. I debated making it one per line default as soon as -x is triggered but will leave it this way for now, with -xx you get the easier to read single line output in all cases, so that's probably good enough.
This commit is contained in:
parent
d85b9a1928
commit
7dfa71fdf3
21
inxi
21
inxi
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 1.8.11
|
||||
#### Date: June 26 2012
|
||||
#### version: 1.8.12
|
||||
#### Date: July 1 2012
|
||||
#### Patch Number: 00
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
|
@ -7065,10 +7065,19 @@ print_hard_disk_data()
|
|||
# printing line one, then new lines according to $divisor setting, and after, if leftovers, print that line.
|
||||
case $i in
|
||||
0)
|
||||
hdd_data=$( create_print_line "$Line_Starter" "${C1}HDD Total Size:${C2} ${hdd_capacity} (${hdd_used}) ${hdd_model}" )
|
||||
print_screen_output "$hdd_data"
|
||||
hdd_model=''
|
||||
Line_Starter=' '
|
||||
if [[ $divisor -eq 1 ]];then
|
||||
hdd_data=$( create_print_line "$Line_Starter" "${C1}HDD Total Size:${C2} ${hdd_capacity} (${hdd_used})" )
|
||||
print_screen_output "$hdd_data"
|
||||
Line_Starter=' '
|
||||
hdd_data=$( create_print_line "$Line_Starter" "${hdd_model}" )
|
||||
print_screen_output "$hdd_data"
|
||||
hdd_model=''
|
||||
else
|
||||
hdd_data=$( create_print_line "$Line_Starter" "${C1}HDD Total Size:${C2} ${hdd_capacity} (${hdd_used}) ${hdd_model}" )
|
||||
print_screen_output "$hdd_data"
|
||||
hdd_model=''
|
||||
Line_Starter=' '
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# using modulus here, if divisible by $divisor, print line, otherwise skip
|
||||
|
|
Loading…
Reference in a new issue