mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
coreutils: add generic version check override
Override generic version checks to skip them for some of the tools that don't report their versions. Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
committed by
Alexandru Ardelean
parent
3a41106cdc
commit
ce418228c3
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$PKG_NAME" = 'coreutils' ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
EXEC=${PKG_NAME#coreutils-}
|
||||
|
||||
case "$EXEC" in
|
||||
echo|false|kill|printf|pwd|test|true)
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
"$EXEC" --version 2>&1 | grep -qF "$PKG_VERSION"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user