gluon-setup-mode: remove obsolete migration

This commit is contained in:
Matthias Schiffer 2022-01-02 22:23:46 +01:00
parent c7e38fdc2c
commit 84f4c164f4
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -1,14 +0,0 @@
#!/usr/bin/lua
local uci = require('simple-uci').cursor()
local old = uci:get_first('gluon-config-mode', 'wizard', 'configured')
if old == '1' then
local setup_mode = uci:get_first('gluon-setup-mode', 'setup_mode')
uci:set('gluon-setup-mode', setup_mode, 'configured', true)
uci:save('gluon-setup-mode')
end
os.remove('/etc/config/gluon-config-mode')