Developing lightweight computation at the DSG edge

Commit b2dea2ae authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Fix BMX6 Graph page



Adapt new luci-app-bmx6 package's bmx6-graph.js file to qMp. Nodes now appear
on the topology graph page, but links are only shown with qMp trunk, not with
testing.

Partial fix for #446
Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent f1d40048
#!/bin/sh #!/bin/sh
# Move the BMX6 entry to a menu in the qMp page
uci set luci-bmx6.luci=bmx6 uci set luci-bmx6.luci=bmx6
uci set luci-bmx6.luci.place="qmp Mesh" uci set luci-bmx6.luci.place="qmp Mesh"
uci set luci-bmx6.luci.position=3 uci set luci-bmx6.luci.position=3
uci set luci-bmx6.luci.json="exec:/www/cgi-bin/bmx6-info -s" uci set luci-bmx6.luci.json="exec:/www/cgi-bin/bmx6-info -s"
uci set luci-bmx6.luci.ignore=0 uci set luci-bmx6.luci.ignore=0
uci commit luci-bmx6 uci commit luci-bmx6
# Update BMX6's JSON graph to match the new location of the BMX6 menu
FILENAME="/www/luci-static/resources/bmx6/js/bmx6-graph.js"
if [ -f $FILENAME ]; then
sed -i 's|/cgi-bin/luci/admin/network/BMX6/topology|/cgi-bin/luci/qmp/Mesh/topology|g' $FILENAME
fi
exit 0
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