Hi Everyone,

I need to create a new 'interface' section with  name 'lan1'  in 
/etc/config/network

config   interface   'lan1'
  ....
  ...

I need to do that through C API.
Currently I  am creating a new session using   uci_add_section(..) which 
creates a  section with no name.

I read that we can create a section with name using   uci_set(..) API. I am 
wonder if someone can tell me how to do it.

I can do it from command line with the following command:

>>>uci    set  network.lan1=interface
>> uci    commit  network


Thanks,
Farid
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to