When building a custom OpenWrt image, how do you pre-configure static
routes? So that when the image is freshly installed, several static
routes are already configured?
This is usually configured with
/etc/sysconfig/network-scripts/route-<dev_name>
(/etc/sysconfig/network-scripts/route-eth1 for the eth1 device for
example). According to the OpenWRT wiki [1], custom files are included
in <buildroot dir>/files/, so for static routes for eth1 that would be
<buildroot dir>/files/etc/sysconfig/network-scripts/route-eth1, I think.
[1] - http://wiki.openwrt.org/doc/howto/build#custom.files (Custom files
- OpenWrt Buildroot – Usage - OpenWrt Wiki)
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users