forked from ungleich-public/cdist
Slackware os and os_version explorer support.
This commit is contained in:
parent
1d933dd5d3
commit
1b25ef33b9
2 changed files with 8 additions and 0 deletions
|
@ -88,6 +88,11 @@ if [ -f /etc/SuSE-release ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /etc/slackware-version ]; then
|
||||||
|
echo slackware
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
uname_s="$(uname -s)"
|
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
|
||||||
|
|
|
@ -54,6 +54,9 @@ case "$($__explorer/os)" in
|
||||||
redhat|centos)
|
redhat|centos)
|
||||||
cat /etc/redhat-release
|
cat /etc/redhat-release
|
||||||
;;
|
;;
|
||||||
|
slackware)
|
||||||
|
cat /etc/slackware-version
|
||||||
|
;;
|
||||||
suse)
|
suse)
|
||||||
cat /etc/SuSE-release
|
cat /etc/SuSE-release
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue