Developing lightweight computation at the DSG edge

Commit 75509ffe authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Check if the topology plugin is available before adding it to BMX6 configuration

parent c9a1a55f
...@@ -775,8 +775,10 @@ qmp_configure_bmx6() { ...@@ -775,8 +775,10 @@ qmp_configure_bmx6() {
uci set $conf.bmx6_sms_plugin=plugin uci set $conf.bmx6_sms_plugin=plugin
uci set $conf.bmx6_sms_plugin.plugin=bmx6_sms.so uci set $conf.bmx6_sms_plugin.plugin=bmx6_sms.so
if [ -f /lib/bmx6_topology.so ]; then
uci set $conf.bmx6_topology_plugin=plugin uci set $conf.bmx6_topology_plugin=plugin
uci set $conf.bmx6_topology_plugin.plugin=bmx6_topology.so uci set $conf.bmx6_topology_plugin.plugin=bmx6_topology.so
fi
# chat file must be syncronized using sms # chat file must be syncronized using sms
cfg_sms=$(uci add $conf syncSms) cfg_sms=$(uci add $conf syncSms)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment