gluon/package/gluon-node-info/files/lib/gluon/upgrade/500-node-info-system
Matthias Schiffer 6cf03bab37
treewide: replace normal uses of luci.model.uci with simple-uci to reduce LuCI dependencies
We also make use of the boolean support of simple-uci to make scripts
clearer.
2017-02-10 02:10:01 +01:00

11 lines
193 B
Lua
Executable File

#!/usr/bin/lua
local uci = require('simple-uci').cursor()
local config = 'gluon-node-info'
if not uci:get_first(config, 'system') then
uci:section(config, 'system')
uci:save(config)
end