[ELDK] [PATCH RFSB] Busybox links: rename conflicting binaries before creating the links
Wolfgang Grandegger
wg at grandegger.com
Thu Apr 15 21:33:02 CEST 2010
It may happen that installed binaries are overwritten by busybox links,
e.g. "ps" coming with the "procps" RPM package. This patch will add the
name suffix ".nobb" and through a warning message if it happens.
Signed-off-by: Wolfgang Grandegger <wg at denx.de>
---
Makefile | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 15e2beb..ea6f131 100644
--- a/Makefile
+++ b/Makefile
@@ -178,6 +178,10 @@ $(STAMP_ELDK_PKGS): $(STAMP_RFSB_SKEL)
cd $(BUILD_RFS) ;\
ln -sf /sbin/busybox bin/busybox ;\
while read lnk; do \
+ if [ -r ./$$lnk ]; then \
+ echo "Warning: renaming conflicting binary to $$lnk.nonbb" ; \
+ mv ./$$lnk ./$$lnk.nonbb ;\
+ fi ; \
ln -sf /sbin/busybox ./$$lnk ;\
done < $$bblinks ;\
fi \
--
1.6.2.5
More information about the eldk
mailing list