gluon/package/gluon-node-info/luasrc/lib/gluon/upgrade/500-node-info-system

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