|
From: Josh L. <ru...@us...> - 2006-02-12 01:04:16
|
Update of /cvsroot/acd/acd-2/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13343/bin Modified Files: 00_linux_required Log Message: Added OS tests for SuSE pro and SLES 9, tested on Pro 9.2 and SLES9 Index: 00_linux_required =================================================================== RCS file: /cvsroot/acd/acd-2/bin/00_linux_required,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 00_linux_required 12 Feb 2006 00:56:25 -0000 1.2 --- 00_linux_required 12 Feb 2006 01:03:54 -0000 1.3 *************** *** 24,31 **** OSREL=$(cat /etc/debian_version) OSPATCH=${OSREL} fi - - echo " <required>" echo " <hostname>" --- 24,40 ---- OSREL=$(cat /etc/debian_version) OSPATCH=${OSREL} + elif [ -f /etc/SuSE-release ] ; then + if grep Enterprise /etc/SuSE-release ; then + OSDISTRO="SLES" + else + OSDISTRO="SuSE Professional" + fi + OSREL=$(grep VERSION /etc/SuSE-release | awk '{print $3}') + OSPATCH=$(grep PATCHLEVEL /etc/SuSE-release | awk '{print $3}') + if [ -z "${OSPATCH}" ] ; then + OSPATCH=$OSREL + fi fi echo " <required>" echo " <hostname>" |