or alternatively define your own package, with a ./files subdirectory, that does not compile anything but has the standard install commands that come in BIN, DATA etc. variety so that the rights get set right. You can also indicate there what other packages need to be present or even include commands to remove, rename, link etc.
Put it in the package directory, give it a name like zzz_something so it comes last and overwrites earlier stuff. A bit more complicated and a bit more powerful.
I maintain that way firmware for a series of units that are all customized a bit differently but can start from the same basic OpenWrt
Here is an excerpt from a Makefile of an imaginary package called zzz-MARS so you can edit it. The files it refers to are in .trunk/package/zzz-MARS/files
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=zzz-MARS
PKG_RELEASE:=1
PKG_VERSION:=1.0.0
include $(INCLUDE_DIR)/package.mk
define Package/zzz-MARS
SECTION:=net
CATEGORY:=Base system
TITLE:=Customization of OpenWrt image
DEPENDS:=@LINUX_2_6 +iproute2 +ntpclient +tc +hostapd-mini +hostapd-utils +iw \
+crda
endef
define Package/zzz-MARS/description
<Some Descriptive Text>.
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
endef
define Package/zzz-MARS/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) ./files/wifi $(1)/sbin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) ./files/profile $(1)/etc
$(INSTALL_DATA) ./files/dnsmasq.conf $(1)/etc
rm -f $(1)/etc/hotplug.d/iface/20-ntpclient
endef
$(eval $(call BuildPackage,zzz-MARS))
(Last edited by doddel on 12 Nov 2009, 16:15)