obuspa: Fix raise condition in dhcp Controller setup

This commit is contained in:
Suvendhu Hansa 2025-03-07 11:36:43 +00:00 committed by IOPSYS Dev
parent 2bbeb83eb2
commit db72ee376e
No known key found for this signature in database

View file

@ -462,13 +462,8 @@ if [ "${wan_intf}" == "${INTERFACE}" ]; then
fi
fi
else
if [ -n "${dhcp_mtp}" ]; then
uci -q del obuspa.$dhcp_mtp
fi
if [ -n "${dhcp_mqtt}" ]; then
uci -q del obuspa.$dhcp_mqtt
fi
uci -q del obuspa.dhcpmtp
uci -q del obuspa.dhcpmqtt
sec=$(uci -q add obuspa controller)
uci -q rename obuspa."${sec}"='dhcpcontroller'