aboutsummaryrefslogtreecommitdiffstats
path: root/config/check-uname.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-10-27 11:47:52 +0200
committerFelix Fietkau <nbd@nbd.name>2021-11-01 16:37:52 +0100
commit2d5b83197a2035b95efdd954f086f099b67ae139 (patch)
tree199e31c2fc02fdfcf94ebb739744d732da28f68a /config/check-uname.sh
parenta44e4aaef9e5418929f0f3df6ee5ba5643c2751e (diff)
downloadupstream-2d5b83197a2035b95efdd954f086f099b67ae139.tar.gz
upstream-2d5b83197a2035b95efdd954f086f099b67ae139.tar.bz2
upstream-2d5b83197a2035b95efdd954f086f099b67ae139.zip
build: add HOST_OS_LINUX and HOST_OS_MACOS config symbols
This can be used to simplify host os tests in various places Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'config/check-uname.sh')
-rwxr-xr-xconfig/check-uname.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/check-uname.sh b/config/check-uname.sh
new file mode 100755
index 0000000000..1f1bf9ee07
--- /dev/null
+++ b/config/check-uname.sh
@@ -0,0 +1 @@
+[ "$(uname)" = "$1" ] && echo y || echo n