uhttpd: Execute uci commit and reload_config once
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 20 Mar 2021 12:26:20 +0000 (13:26 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 21 Mar 2021 21:39:32 +0000 (22:39 +0100)
commit741260d2816c8a989553a19685988cc906f43259
treefb206780387c517261b3cdd01f3e3f43aa530341
parent97a4d27fb5707d3a0b943f2af326b04d26f98731
uhttpd: Execute uci commit and reload_config once

Instead of doing uci commit and reload_config for each setting do it
only once when one of these options was changed. This should make it a
little faster when both conditions are taken.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 501221af542b5154fbf8788f8426bc7f5443764a)
package/network/services/uhttpd/files/ubus.default