From 062f941199ed67fd6567db85b1e8480b204e6219 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 13 Jan 2014 23:44:05 +0000 Subject: [PATCH] small change, added N/A if no default runlevel is detected, that should help with debugging. --- inxi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 305b8de..5bbc6fe 100755 --- a/inxi +++ b/inxi @@ -9472,9 +9472,10 @@ print_info_data() if [[ $B_SHOW_X_DATA != 'true' || $B_EXTRA_DATA == 'true' ]];then if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then runlvl_default=$( get_runlevel_default ) - if [[ -n $runlvl_default ]];then - runlvl_default=" ${C1}default$SEP3${C2} $runlvl_default" + if [[ -z $runlvl_default ]];then + runlvl_default='N/A' fi + runlvl_default=" ${C1}default$SEP3${C2} $runlvl_default" fi runlvl="$( get_runlevel_data )" if [[ -n $runlvl ]];then