*** Tarantule ***

čtvrtek 22. května 2008

RedHat/CentosOS version 4 or 5 check in bash


grep -i 'release 4' /etc/redhat-release > /dev/null && DISTRO=RHEL4
grep -i 'release 5' /etc/redhat-release > /dev/null && DISTRO=RHEL5


case $DISTRO in
RHEL4)
echo "verison 4"
;;
RHEL5)
echo "version 5"
;;
*)
echo "this is no CentOS4/CentOS5 or RedHat4/RedHat5"
exit
;;
esac
Vystavil Alchy v 7:06

Žádné komentáře:

Okomentovat

Novější příspěvek Starší příspěvek Domovská stránka
Přihlásit se k odběru: Komentáře k příspěvku (Atom)

Archiv blogu

  • ▼  2008 (18)
    • ▼  května (18)
      • SSL LDAP Search
      • Vista & XP Profile Directory Locations
      • Auditd configuration on Linux to track activity of...
      • RedHat/CentosOS version 4 or 5 check in bash
      • Simple use of test command
      • ILOM - Quick
      • Simple Solaris iptraf like script
      • Allow vsftpd to use passive mode
      • Disable yum kernel updates on CentOS Linux
      • Audit report - script to format output (similar to...
      • Determine processor type and speed (Solaris)
      • Determine if the system is running in 32-bit or 64...
      • Veritas Cluster - Links
      • Sun cluster commands (3.2)
      • Jak v LINUXu změnit nastavení jazyka (LOCALE)
      • Poznámky k Nagiosu (dokumentace)
      • Solaris 10 a příkazy CHOWN/CHGRP
      • Problémy aktualizací Windows XP po instalaci SP3