Error #356
tancat[Kalimotxo] libremap-agent crashes (missing luci.fs)
Descripció
See https://github.com/libremap/libremap-agent-openwrt/pull/16
On the 15th January 2015 the file luci.fs was dropped from luci-base1, causing libremap-agent to crash because of the missing required file:
root@qMp-3a56:~# /usr/sbin/libremap-agent
/usr/bin/lua: module 'luci.fs' not found:
no field package.preload['luci.fs']
no file './luci/fs.lua'
no file '/usr/share/lua/luci/fs.lua'
no file '/usr/share/lua/luci/fs/init.lua'
no file '/usr/lib/lua/luci/fs.lua'
no file '/usr/lib/lua/luci/fs/init.lua'
no file './luci/fs.so'
no file '/usr/lib/lua/luci/fs.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
?: in main chunk
[C]: in function 'require'
/usr/sbin/libremap-agent:4: in main chunk
[C]: ?
This commit replaces old luci.fs required file with nixio.fs, which provides the same functions plus many more (check API references [2] and [3] respectively)
[1] openwrt/luci@e91b603
[2] http://luci.subsignal.org/api/luci/modules/luci.fs.html
[3] http://luci.subsignal.org/api/nixio/modules/nixio.fs.html