gluon-scheduled-domain-switch: use gluon-switch-domain
This commit is contained in:
parent
6ab9d3415d
commit
02c8650bae
@ -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")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user