Custom files 定制文件
Warning! Be carefull! OpenWrt failsafe relies on 100%-working base files on the SquashFS-partition (i.e. the /rom -directory), so in case you mis-configure or misspell something, you will end up with a non-working OpenWrt failsafe and be forced to used more rudimentary methods to debrick your device again! |
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.
备注:
文章中的<buildroot dir>是指openwrt源码的根目录,即顶层makefile所在目录,比如openert/truck。如果该目录下没有子目录files,可以自己新建files
英文文档地址:http://wiki.openwrt.org/doc/howto/build