9b172bbaf4
Moving the scripts to a common directory not only vastly simplifies the zzz-gluon-upgrade script, but also allows to define an ordering of such scripts across packages.
12 lines
218 B
Lua
Executable File
12 lines
218 B
Lua
Executable File
#!/usr/bin/lua
|
|
|
|
local uci = require('luci.model.uci').cursor()
|
|
|
|
local config = 'gluon-node-info'
|
|
|
|
if not uci:get_first(config, 'system') then
|
|
uci:section(config, 'system')
|
|
uci:save(config)
|
|
uci:commit(config)
|
|
end
|