From 73c8e7eb753c607597258bf14b8ed4b49df6e457 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Wed, 5 Mar 2025 10:13:15 +0530 Subject: [PATCH] gateway-info: avoid uci commit in uci-defaults --- .../files/etc/uci-defaults/86-set-gateway-device-info | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gateway-info/files/etc/uci-defaults/86-set-gateway-device-info b/gateway-info/files/etc/uci-defaults/86-set-gateway-device-info index 31ebe3c6e..6a51a5c22 100644 --- a/gateway-info/files/etc/uci-defaults/86-set-gateway-device-info +++ b/gateway-info/files/etc/uci-defaults/86-set-gateway-device-info @@ -210,7 +210,6 @@ enable_dhcp_option125() { local newsendopts="" local req125_present=0 local send125_present=0 - local network_uci_update=0 local opt125="125:" for ropt in $reqopts; do @@ -231,18 +230,12 @@ enable_dhcp_option125() { if [ ${req125_present} -eq 0 ]; then newreqopts="$reqopts 125" uci -q set network."${wan}".reqopts="$newreqopts" - network_uci_update=1 fi if [ ${send125_present} -eq 0 ]; then configure_send_op125 "${sendopts}" "${wan}" "network" - network_uci_update=1 fi fi - - if [ ${network_uci_update} -eq 1 ]; then - uci commit network - fi } enable_dnsmasq_option125() { @@ -266,7 +259,6 @@ enable_dnsmasq_option125() { if [ ${send125_present} -eq 0 ]; then uci -q del_list dhcp."${lan}".dhcp_option="${base_opt}" configure_send_op125 "${base_opt}" "${lan}" "dhcp" - uci commit dhcp fi fi }