diff --git a/obuspa/files/etc/uci-defaults/obuspa-set-dhcp-option b/obuspa/files/etc/uci-defaults/obuspa-set-dhcp-option index 7c1062a78..922754793 100644 --- a/obuspa/files/etc/uci-defaults/obuspa-set-dhcp-option +++ b/obuspa/files/etc/uci-defaults/obuspa-set-dhcp-option @@ -38,13 +38,11 @@ configure_dhcp_options() { if [ "${role}" = "extender" ]; then interface="lan" uci -q set obuspa.global.interface="lan" - uci commit obuspa else interface="wan" fi fi - network_uci_update=0 reqopts="$(uci -q get network."${interface}".reqopts)" proto="$(uci -q get network."${interface}".proto)" local req125_present=0 @@ -70,19 +68,13 @@ configure_dhcp_options() { if [ ${req125_present} -eq 0 ]; then newreqopts="$reqopts 125" uci -q set network."${interface}".reqopts="$newreqopts" - network_uci_update=1 fi if [ ${send124_present} -eq 0 ]; then newsendopts="${sendopts} 124:00:00:0D:E9:04:03:75:73:70" uci -q set network."${interface}".sendopts="$newsendopts" - network_uci_update=1 fi fi - - if [ ${network_uci_update} -eq 1 ]; then - uci commit network - fi } configure_dhcp_options