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

View File

@ -60,8 +60,5 @@ if not switch_after_min_reached() and not switch_time_passed() then
os.exit(0) os.exit(0)
end end
uci:set("gluon", "core", "domain", target_domain) local cmd = {[0] = 'gluon-switch-domain', target_domain}
uci:commit("gluon") unistd.execp(cmd[0], cmd)
os.execute("gluon-reconfigure")
os.execute("reboot")