why not use uci instead of sed
Disabled:
uci set dhcp.@dnsmasq[0].rebind_protection=‘0’
uci commit dhcp
Enabled:
uci set dhcp.@dnsmasq[0].rebind_protection=‘1’