openwrt加入默認配置文件的方法

In case you want to include some custom configuration files, the correct place to put them is:
<buildroot dir>/files/
For example, let's say that you want an image with a custom /etc/config/firewall or a custom etc/sysctl.conf, then create this files as:
<buildroot dir>/files/etc/config/firewall
<buildroot dir>/files/etc/sysctl.conf
E.g. if your <buildroot dir> is /openwrt/trunk and you want some files to be copied into firmware image's /etc/config directory, the correct place to put them is /openwrt/trunk/files/etc/config .

Custom files
In many cases, you may want to have a custom image that has been pre-configured to your link. If so, place your custom files in

<buildroot dir>/files/
For example, let's say that you want an image with a pre-configured /etc/config/firewall, then place your modified firewall config in here:

<buildroot dir>/files/etc/config
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章