[OpenWrt-Devel] How am I supposed to change settings in /etc/config/network of default root file system of OpenWRT?

Moritz Warning moritzwarning at web.de
Mon May 18 22:36:27 EDT 2020


On 5/19/20 3:49 AM, Jeonghum Joh wrote:
> I know how to do this for /etc/config/firewall.
> It is package/network/config/firewall/files/firewall.config
>
> But I cannot find /etc/config/network for default root file system.
>
> Where can I find it?
> How am I supposed to change settings in /etc/config/network of default root
> file system of OpenWRT?
>
> Thank you in advance!
>
> Jeonghum
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>

In your OpenWrt build root, create a file "files/etc/config/firewall".
When you build OpenWrt, the file will be included in the image (and not overwritten).

Btw., /etc/config/network is generated by a script on first boot and that is then deleted.
But it is still accessible in /rom/etc/uci_defaults/02_network (not quite sure on the script name).

- mwarning

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list