gluon-scheduled-domain-switch: use gluon-switch-domain

This commit is contained in:
Matthias Schiffer 2020-06-30 23:08:37 +02:00
parent 6ab9d3415d
commit 02c8650bae
1 changed files with 2 additions and 5 deletions

View File

@ -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)