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 eea49a2834)
This commit is contained in:
Matthias Schiffer 2022-02-22 18:51:45 +01:00
parent 64bf4d1b53
commit bf8e97014b
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -22,7 +22,7 @@ function f:write()
uci:set("gluon-setup-mode", uci:get_first("gluon-setup-mode", "setup_mode"), "configured", true)
uci:save("gluon-setup-mode")
os.execute('gluon-reconfigure')
os.execute('exec gluon-reconfigure >/dev/null')
f.template = "wizard/reboot"
f.package = "gluon-config-mode-core"