commit | f9e30ed5827af1ce2cd495594e515a86146323a6 | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Wed Nov 15 09:04:24 2017 +0200 |
committer | Johan Hedberg <johan.hedberg@gmail.com> | Wed Nov 15 16:04:39 2017 +0200 |
tree | b52638fda822669b9f3f4877f7ad1b483278c78b | |
parent | fe20f55d0328a398eca62dd5e654ba0bd883866d [diff] |
shell: Fix command lookup for non-default modules The code was completely broken wrt command lookups when the command is given in the format "<module> <cmd> <args...>". It would only work if the default module is not set, which is almost never the case (as most apps set it explicitly). Refactor the command handling by moving more logic up to shell_exec(), so that get_cb() does a lookup for a single module Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>