added -b to lsblk

This commit is contained in:
Harald Hope 2018-04-17 18:33:52 -07:00
parent 7186914451
commit b08a02d066

2
inxi
View file

@ -10045,7 +10045,7 @@ sub set_lsblk {
$b_lsblk = 1; $b_lsblk = 1;
my (@temp,@working); my (@temp,@working);
if (my $program = main::check_program('lsblk')){ if (my $program = main::check_program('lsblk')){
@working = main::grabber("$program -P --output NAME,TYPE,RM,FSTYPE,SIZE 2>/dev/null"); @working = main::grabber("$program -bP --output NAME,TYPE,RM,FSTYPE,SIZE 2>/dev/null");
foreach (@working){ foreach (@working){
my ($name,$type,$rm,$fstype,$size) = ('','','','',''); my ($name,$type,$rm,$fstype,$size) = ('','','','','');
if (/NAME="([^"]*)"\s+TYPE="([^"]*)"\s+RM="([^"]*)"\s+FSTYPE="([^"]*)"\s+SIZE="([^"]*)"/){ if (/NAME="([^"]*)"\s+TYPE="([^"]*)"\s+RM="([^"]*)"\s+FSTYPE="([^"]*)"\s+SIZE="([^"]*)"/){