15 lines
398 B
Lua
Executable File
15 lines
398 B
Lua
Executable File
#!/usr/bin/lua
|
|
|
|
local site = require 'gluon.site_config'
|
|
local uci = require('simple-uci').cursor()
|
|
|
|
|
|
if site.setup_mode
|
|
and site.setup_mode.skip
|
|
and not uci:get_first('gluon-setup-mode', 'setup_mode', 'configured', false) then
|
|
local name = uci:get_first("gluon-setup-mode", "setup_mode")
|
|
uci:set("gluon-setup-mode", name, "configured", true)
|
|
uci:save('gluon-setup-mode')
|
|
end
|
|
|