mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
added -b to lsblk
This commit is contained in:
parent
7186914451
commit
b08a02d066
2
inxi
2
inxi
|
@ -10045,7 +10045,7 @@ sub set_lsblk {
|
|||
$b_lsblk = 1;
|
||||
my (@temp,@working);
|
||||
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){
|
||||
my ($name,$type,$rm,$fstype,$size) = ('','','','','');
|
||||
if (/NAME="([^"]*)"\s+TYPE="([^"]*)"\s+RM="([^"]*)"\s+FSTYPE="([^"]*)"\s+SIZE="([^"]*)"/){
|
||||
|
|
Loading…
Reference in a new issue