Developing lightweight computation at the DSG edge

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

[qmp-system] Fix wget() in bmx6json.lua from luci-app-bmx6

Dirty fix for #446 while it is not fixed upstream (see
https://github.com/openwrt-routing/packages/issues/436

)
Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent b2dea2ae
#!/bin/sh
# Update BMX6's bmx6json.lua file to avoid race condition described in
# https://github.com/openwrt-routing/packages/issues/436
# TODO: Remove this script once the bug has been fixed upstream
FILENAME="/usr/lib/lua/luci/model/bmx6json.lua"
if [ -f $FILENAME ]; then
sed -i 's|raw,err = wget(url..field,1000)|raw,err = wget(url..field,1000)\n\t\tsys.exec("")|g' bmx6json.lua
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