Hello ,
I need to automate the addition of a new static lease on the LAN with UCI command.
Attacched you can see the manual configuration that I want to translate in UCI commands.
Now I'm using these one but sometimes they don't work:
1: 'uci set dhcp.@host[0].name="QCA"',
2: 'uci set dhcp.@host[0].ip="192.168.240.171"',
3: 'uci commit dhcp',
4:'uci set dhcp.@host[0].mac="d8:5b:76:ab:a0:36"'
5: 'uci show dhcp'
Thanks for the help,
Alessandro