Does anybody successfully run the cumulocity lua script
WikI 1st is wrong on current version luci.util and luci.sys doesn’t exist their are vuci. now
As wiki claim
Custom lua scripts can be placed in „/usr/local/usr/lib/lua/cm/“. Application will scan this folder for any *.lua files and load them if they contains „init“ function.
but simple 3 row script
function init()
os.execute(“echo inittest-script-init >> /tmp/cm_test.log”)
end
Could you please confirm that the cumulocity package is installed in the router from the package manager? If not, you can navigate to System → Package manager to install it.
The /usr/local/usr/lib/lua/cm/ directory is created during package installation.