From 84f4c164f46725da4d2355fc3186acdc9b08449c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 2 Jan 2022 22:23:46 +0100 Subject: [PATCH] gluon-setup-mode: remove obsolete migration --- .../lib/gluon/upgrade/310-setup-mode-migrate | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100755 package/gluon-setup-mode/luasrc/lib/gluon/upgrade/310-setup-mode-migrate diff --git a/package/gluon-setup-mode/luasrc/lib/gluon/upgrade/310-setup-mode-migrate b/package/gluon-setup-mode/luasrc/lib/gluon/upgrade/310-setup-mode-migrate deleted file mode 100755 index ecaa07f9..00000000 --- a/package/gluon-setup-mode/luasrc/lib/gluon/upgrade/310-setup-mode-migrate +++ /dev/null @@ -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')