diff --git a/patches/openwrt/hack/0001-busybox-Try-to-install-everything-into-s-bin.patch b/patches/openwrt/hack/0001-busybox-Try-to-install-everything-into-s-bin.patch index 1aa79ccd47f295f3a9b42adba91e89cba7733b41..c2d1f7415c9383ff60b5370aa1695f1ecb53290e 100644 --- a/patches/openwrt/hack/0001-busybox-Try-to-install-everything-into-s-bin.patch +++ b/patches/openwrt/hack/0001-busybox-Try-to-install-everything-into-s-bin.patch @@ -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