From 02c8650bae03f76774a536b653993b9a6fae7034 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 30 Jun 2020 23:08:37 +0200 Subject: [PATCH] gluon-scheduled-domain-switch: use gluon-switch-domain --- .../luasrc/lib/gluon/scheduled-domain-switch/switch-domain | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/package/gluon-scheduled-domain-switch/luasrc/lib/gluon/scheduled-domain-switch/switch-domain b/package/gluon-scheduled-domain-switch/luasrc/lib/gluon/scheduled-domain-switch/switch-domain index 31fcea36..1d7e5898 100755 --- a/package/gluon-scheduled-domain-switch/luasrc/lib/gluon/scheduled-domain-switch/switch-domain +++ b/package/gluon-scheduled-domain-switch/luasrc/lib/gluon/scheduled-domain-switch/switch-domain @@ -60,8 +60,5 @@ if not switch_after_min_reached() and not switch_time_passed() then os.exit(0) end -uci:set("gluon", "core", "domain", target_domain) -uci:commit("gluon") - -os.execute("gluon-reconfigure") -os.execute("reboot") +local cmd = {[0] = 'gluon-switch-domain', target_domain} +unistd.execp(cmd[0], cmd)