Skip to content

Commit

Permalink
Fix for Solaris, AIX and HP-UX
Browse files Browse the repository at this point in the history
  • Loading branch information
John C. Frickson committed Oct 17, 2016
1 parent 3ae63db commit c5ea9fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ax_nagios_get_distrib
Expand Up @@ -96,10 +96,12 @@ AC_SUBST(dist_ver)
[bsd],
dist_type=`uname -s | tr ["[A-Z]" "[a-z]"]`
dist_ver=`uname -r`,
[aix|hp-ux],
dist_ver=$OSTYPE,
[aix],
dist_ver="`uname -v`.`uname -r`",
[hp-ux],
dist_ver=`uname -r | cut -d'.' -f1-3`,
[solaris],
dist_ver=`echo $OSTYPE | cut -d'.' -f2`,
dist_ver=`uname -r | cut -d'.' -f2`,
[*],
dist_ver=$OSTYPE
)
Expand Down

0 comments on commit c5ea9fe

Please sign in to comment.