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

busybox: Verbose moving of symlinks

parent b6fa0c74
Branches
Tags
No related merge requests found
......@@ -18,10 +18,10 @@ index fc882d3..5d4ba1d 100644
$(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`; \
+ echo Moving $$$$i && 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`; \
+ echo Moving $$$$i && 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
......
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