forked from ungleich-public/cdist
explorer os_version supports macosx
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
02da74e437
commit
b474960774
1 changed files with 5 additions and 10 deletions
|
@ -23,7 +23,11 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
case "$($__explorer/os)" in
|
case "$($__explorer/os)" in
|
||||||
openbsd)
|
archlinux)
|
||||||
|
# empty, but well...
|
||||||
|
cat /etc/arch-release
|
||||||
|
;;
|
||||||
|
macosx|openbsd)
|
||||||
uname -r
|
uname -r
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -36,11 +40,6 @@ if grep -q ^DISTRIB_ID=Ubuntu /etc/lsb-release 2>/dev/null; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /etc/arch-release ]; then
|
|
||||||
echo archlinux
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
echo debian
|
echo debian
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -71,10 +70,6 @@ uname_s="$(uname -s)"
|
||||||
|
|
||||||
# Assume there is no tr on the client -> do lower case ourselves
|
# Assume there is no tr on the client -> do lower case ourselves
|
||||||
case "$uname_s" in
|
case "$uname_s" in
|
||||||
Darwin)
|
|
||||||
echo macosx
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
NetBSD)
|
NetBSD)
|
||||||
echo netbsd
|
echo netbsd
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue