Slackware os and os_version explorer support.

This commit is contained in:
Eivind Uggedal 2013-01-28 08:30:54 -05:00
parent 1d933dd5d3
commit 1b25ef33b9
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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
;; ;;