This commit is contained in:
inxi-svn 2009-01-09 01:57:07 +00:00
parent a81e8e5f0c
commit 5b246b5dd7

7
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.9.3-b1-t1 #### version: 0.9.3-b1-t2
#### Date: January 8, 2009 #### Date: January 8, 2009
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
@ -1870,9 +1870,8 @@ get_hdd_data_basic()
# /dev/hdc5 32981408 20955204 12026204 64% /media/hd2 # /dev/hdc5 32981408 20955204 12026204 64% /media/hd2
# /dev/sdb1 390700768 188926868 201773900 49% /media/Snusmumrikken # /dev/sdb1 390700768 188926868 201773900 49% /media/Snusmumrikken
# /dev/sda1 732572000 248156936 484415064 34% /media/Mr. Big" # /dev/sda1 732572000 248156936 484415064 34% /media/Mr. Big"
# hdd_used=$( echo "$dfdata" | gawk '
# hdd_used=$( df | gawk ' hdd_used=$( df | gawk '
hdd_used=$( echo "$dfdata" | gawk '
/^\/dev\/(mapper\/|[hs]d[a-z][0-9]+)/ { /^\/dev\/(mapper\/|[hs]d[a-z][0-9]+)/ {
# this handles the case where the first item is too long # this handles the case where the first item is too long
# and makes df wrap output to next line, so here we advance # and makes df wrap output to next line, so here we advance