Skip to content
Snippets Groups Projects
Unverified Commit bf8e9701 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

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.

(cherry picked from commit eea49a28)
parent 64bf4d1b
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ function f:write() ...@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment