gateway-info: avoid uci commit in uci-defaults

This commit is contained in:
Vivek Kumar Dutta 2025-03-05 10:13:15 +05:30
parent 41ba4fcedc
commit 73c8e7eb75
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C

View file

@ -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
}