gluon-config-mode-core: discard gluon-reconfigure output (#2395)
The stdout output of gluon-web scripts is directly sent to uhttpd, becoming a part of the HTML output or even replacing HTTP status or headers. The output of gluon-reconfigure is not supposed to end up there. While we're at it, also add an exec to avoid an unnecessary shell process.
This commit is contained in:
parent
bbc00017a9
commit
eea49a2834
@ -22,7 +22,7 @@ function f:write()
|
|||||||
uci:set("gluon-setup-mode", uci:get_first("gluon-setup-mode", "setup_mode"), "configured", true)
|
uci:set("gluon-setup-mode", uci:get_first("gluon-setup-mode", "setup_mode"), "configured", true)
|
||||||
uci:save("gluon-setup-mode")
|
uci:save("gluon-setup-mode")
|
||||||
|
|
||||||
os.execute('gluon-reconfigure')
|
os.execute('exec gluon-reconfigure >/dev/null')
|
||||||
|
|
||||||
f.template = "wizard/reboot"
|
f.template = "wizard/reboot"
|
||||||
f.package = "gluon-config-mode-core"
|
f.package = "gluon-config-mode-core"
|
||||||
|
Loading…
Reference in New Issue
Block a user