X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=package%2FMakefile;h=8e8c6c9a63fecbc4d4dea74cdec1b96bf4b7cf4d;hp=786edd49f00955ea114e80caad8347847a9b0f31;hb=a6b6acacda2dba8bc0926130b68ab42ecff1654e;hpb=8b347e0bb2e8b9caf3f62278f741c91b5d30acbc diff --git a/package/Makefile b/package/Makefile index 786edd49f..8e8c6c9a6 100644 --- a/package/Makefile +++ b/package/Makefile @@ -64,6 +64,14 @@ endif $(curdir)/rootfs-prepare: $(TMP_DIR)/.build @-$(MAKE) package/preconfig @if [ -d $(TOPDIR)/files ]; then \ + ( cd $(TOPDIR)/files; find -type f ) | \ + ( cd $(TARGET_DIR); while :; do \ + read FILE; \ + [ -z "$$FILE" ] && break; \ + [ -L "$$FILE" ] || continue; \ + echo "Removing symlink $(TARGET_DIR)/$$FILE"; \ + rm -f "$$FILE"; \ + done; ); \ $(CP) $(TOPDIR)/files/. $(TARGET_DIR); \ fi @mkdir -p $(TARGET_DIR)/etc/rc.d