2014-07-05 18:11:41 +00:00
|
|
|
#!/usr/bin/lua
|
|
|
|
|
2017-01-19 11:51:04 +00:00
|
|
|
local uci = require('simple-uci').cursor()
|
2014-07-05 18:11:41 +00:00
|
|
|
|
|
|
|
|
2017-01-19 11:51:04 +00:00
|
|
|
local old = uci:get_first('gluon-config-mode', 'wizard', 'configured')
|
2014-07-05 18:11:41 +00:00
|
|
|
if old == '1' then
|
2017-01-19 11:51:04 +00:00
|
|
|
local setup_mode = uci:get_first('gluon-setup-mode', 'setup_mode')
|
|
|
|
uci:set('gluon-setup-mode', setup_mode, 'configured', true)
|
2014-07-05 18:11:41 +00:00
|
|
|
|
2017-01-19 11:51:04 +00:00
|
|
|
uci:save('gluon-setup-mode')
|
2014-07-05 18:11:41 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
os.remove('/etc/config/gluon-config-mode')
|