bugs in ModuleStatus()

pull/12/head
Tom Early 7 years ago
parent f3c81bae41
commit 572dfb0d3d

@ -122,15 +122,15 @@ BaseStatus () {
} }
ModuleStatus () { ModuleStatus () {
local LoadState SubState mcvar local LoadState SubState mcvar process
if [ -z ${3} ]; then if [ -z ${3} ]; then
ModuleState[$1]='EMPTY' ModuleState[$1]='EMPTY'
else else
mcvar="n${3}" mcvar="n${3}"
process="qn$3"
if [[ "$process" == 'qnmmdvm' ]]; then process='qnrelay'; fi
if [[ ${!mcvar} > 1 ]]; then if [[ ${!mcvar} > 1 ]]; then
process="${3}${2}" process="${process}${2}"
else
process="${3}"
fi fi
LoadState=$( systemctl show -p LoadState --value $process ) LoadState=$( systemctl show -p LoadState --value $process )
SubState=$( systemctl show -p SubState --value $process ) SubState=$( systemctl show -p SubState --value $process )

Loading…
Cancel
Save

Powered by TurnKey Linux.