From efa6946d4b43b8a07a7d0e4dcbfe1bd31503e1d9 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Wed, 11 Jul 2018 22:51:19 +0300 Subject: [PATCH] coreutils: optimize the '[' symlink Link '[' directly to the coreutils binary instead of going through 'test'. Suggested-by: Arnout Vandecappelle Signed-off-by: Baruch Siach Signed-off-by: Thomas Petazzoni --- package/coreutils/coreutils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk index 2fb4a32c79..7e7251ff73 100644 --- a/package/coreutils/coreutils.mk +++ b/package/coreutils/coreutils.mk @@ -112,7 +112,7 @@ endif define COREUTILS_CLEANUP # link for archaic shells - ln -fs test $(TARGET_DIR)/usr/bin/[ + ln -fs coreutils $(TARGET_DIR)/usr/bin/[ # gnu thinks chroot is in bin, debian thinks it's in sbin rm -f $(TARGET_DIR)/usr/bin/chroot ln -sf ../bin/coreutils $(TARGET_DIR)/usr/sbin/chroot -- 2.30.2