mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
output for remote file systems
This commit is contained in:
parent
95ab6339d9
commit
81323c393d
13
inxi
13
inxi
|
@ -3178,7 +3178,8 @@ print_partition_data()
|
||||||
{
|
{
|
||||||
local a_partition_working='' partition_used='' swap='' partition_data=''
|
local a_partition_working='' partition_used='' swap='' partition_data=''
|
||||||
local counter=0 line_max=160 i=0 a_partition_data='' line_starter=''
|
local counter=0 line_max=160 i=0 a_partition_data='' line_starter=''
|
||||||
local partitionIdClean='' part_dev='' full_dev='' part_label='' full_label='' part_uuid='' full_uuid=''
|
local partitionIdClean='' part_dev='' full_dev='' part_label='' full_label=''
|
||||||
|
local part_uuid='' full_uuid='' dev_remote=''
|
||||||
|
|
||||||
# this handles the different, shorter, irc colors strings embedded in variable data
|
# this handles the different, shorter, irc colors strings embedded in variable data
|
||||||
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
|
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
|
||||||
|
@ -3215,11 +3216,17 @@ print_partition_data()
|
||||||
# don't show user names in output
|
# don't show user names in output
|
||||||
if [[ "$B_SHOW_LABELS" == 'true' || "$B_SHOW_UUIDS" == 'true' ]];then
|
if [[ "$B_SHOW_LABELS" == 'true' || "$B_SHOW_UUIDS" == 'true' ]];then
|
||||||
if [[ -n "${a_partition_working[5]}" ]];then
|
if [[ -n "${a_partition_working[5]}" ]];then
|
||||||
part_dev="/dev/${a_partition_working[5]}"
|
if [[ -z "$( grep '^//' <<< ${a_partition_working[5]} )" ]];then
|
||||||
|
part_dev="/dev/${a_partition_working[5]}"
|
||||||
|
dev_remote='dev'
|
||||||
|
else
|
||||||
|
part_dev="${a_partition_working[5]}"
|
||||||
|
dev_remote='remote'
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
part_dev='N/A'
|
part_dev='N/A'
|
||||||
fi
|
fi
|
||||||
full_dev=" ${C1}dev:${C2} $part_dev"
|
full_dev=" ${C1}$dev_remote:${C2} $part_dev"
|
||||||
if [[ "$B_SHOW_LABELS" == 'true' ]];then
|
if [[ "$B_SHOW_LABELS" == 'true' ]];then
|
||||||
if [[ -n "${a_partition_working[6]}" ]];then
|
if [[ -n "${a_partition_working[6]}" ]];then
|
||||||
part_label="${a_partition_working[6]}"
|
part_label="${a_partition_working[6]}"
|
||||||
|
|
Loading…
Reference in a new issue