Skip to content
Snippets Groups Projects
Unverified Commit 6f819a20 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

busybox: Get back ugly hack as INSTALL_NO_USR doesn't work

parent e14f4cb5
Branches
Tags
No related merge requests found
......@@ -12,10 +12,17 @@ diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index fc882d3..5d4ba1d 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -132,6 +132,8 @@ endef
@@ -132,6 +132,15 @@ endef
define Package/busybox/install
$(INSTALL_DIR) $(1)/etc/init.d
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
+ for i in $(1)/usr/bin/*; do \
+ [ "$$$$(basename $$$$i)" \!= env ] || continue; \
+ rm -f $$$$i && ln -s busybox $(1)/bin/`basename $$$$i`; \
+ done
+ for i in $(1)/usr/sbin/*; do \
+ rm -f $$$$i && ln -s ../bin/busybox $(1)/sbin/`basename $$$$i`; \
+ done
+ [ -e $(1)/usr/bin/env ] || ln -s ../../bin/busybox $(1)/usr/bin/env
+ rm -f $(1)/sbin/ifup $(1)/sbin/ifdown
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_CROND),)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment