[SOLVED] Setting of dhcp.lan.dhcp_option

I recently pushed myself to attempt to run an imagebuilder image on my old TP-Link MR4320v2, since the Rooter project decided it was EOL. Got 19.03.3 to run, with extroot and all.
Attempting to automate much of the post-flash configuration, I put some customisation files in /etc/uci-defaults (using FILES in imagebuilder).
Much of it went fine, but it seems that I am unable to figure out how to set dhcp.lan.dhcp_option via uci (forcing me to vi the /etc/config/dhcp file). In my config file I have this:

config dhcp 'lan'
        option interface 'lan'
        option leasetime '12h'
        option start '17'
        option limit '254'
        option force '1'
        list dhcp_option '121,,,,,,'
        list dhcp_option '249,,,,,,'

and uci show says,

dhcp.lan.dhcp_option='121,,,,,,' '249,,,,,,'

But how do I set this using uci? I tried with uci add_list, like

uci add_list dhcp.lan.dhcp_option '121,,,,,,'
uci add_list dhcp.lan.dhcp_option '249,,,,,,'

, but when attempting to commit it says parse error. Any ideas?

uci add_list dhcp.lan.dhcp_option='bla,bla,bla'

That did actually work. Must have just been the equality sign that was missing.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.