Have a look at /etc/ucidefaults. In this directory you place scripts that are only run once, on the first boot. Your package can place scripts there that up date config files by copying, or by using the uci command to add the extras you need On 06/08/2011 11:47 PM, "Lukas Macura" <mac...@opf.slu.cz> wrote: > > Hi to all, > > please I would want to open discussion about creating more complex > package which needs to overwrite configs of other packages. I want to > find "clean" way to do this. > > I will try to explain. We are creating BESIP (Bright Embedded Solution > for IP Telephony). Entire project is based on OpenWrt and is open. We > will give all our work to OpenWrt community back. I will inform about > some "stable" packages later here. For example, we are working on > kamailio3, yuma(netconfd), libssh, libssh2, snortsam, ipqbdb. > > Package besip consists of dependencies to other openwrt packages and > options. That's OK. But we need to overwrite some config files (like > asterisk18 configs). > > Today we are using our config tree which is part of package but is > located under /etc/besip/etcdefault/ . During boot, we added firstboot > entry which will copy needed files in right place and overwrite other > configs. Because if we make package with same config files, it is not > possible to install due to overwriting configs of other packages. > > Did somebody solved this before? Or is there some clean way to achieve this? > > Thank you for any help! > > With regards, > Lukas Macura > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel