mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-12 13:48:20 +01:00
prereq: add support for creating relative symlinks
For targets that install symlinks, like coreutils, if the links happen to be deleted, let prereq stage be capable of creating them again with a relative path. Tested-by: Georgi Valkov <gvalkov@gmail.com> # macOS Signed-off-by: Michael Pratt <mcpratt@pm.me> Link: https://github.com/openwrt/openwrt/pull/16522 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
90262c6f6e
commit
660e398f92
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ define SetupHostCommand
|
|||
[ -x "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0 \
|
||||
;; \
|
||||
esac; \
|
||||
ln -sf "$$$$$$$$bin" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \
|
||||
ln -sf "$$$$$$$${bin#$(STAGING_DIR_HOST)/bin/}" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue