Slackware os and os_version explorer support.

remotes/origin/ssh_callback
Eivind Uggedal 12 years ago
parent 1d933dd5d3
commit 1b25ef33b9
  1. 5
      cdist/conf/explorer/os
  2. 3
      cdist/conf/explorer/os_version

@ -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…
Cancel
Save