Changeset 6261 for trunk/INSTALL/arquivos/scripts/aux.sh
- Timestamp:
- 05/22/12 00:15:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/INSTALL/arquivos/scripts/aux.sh
r6219 r6261 83 83 PSUEDONAME=`cat /etc/redhat-release | sed s/.*\(// | sed s/\)//` 84 84 REV=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*//` 85 # Debian, Ubuntu e variantes , que possuem o LSB85 # Debian, Ubuntu e variantes 86 86 elif [ -f /etc/debian_version ] ; then 87 DIST=`lsb_release -si` 88 PSEUDONAME=`lsb_release -sc` 89 REV=`lsb_release -sr` 87 # Verifica se o LSB esta instalado 88 LSB=`which lsb_release` 89 # Se nao estiver, configura no braco 90 if [ -z "$LSB" ] ; then 91 DIST="Debian" 92 REV=`cat /etc/debian_version` 93 # Se nao, usa o LSB. Ubuntu eh reconhecido aqui 94 else 95 DIST=`lsb_release -si` 96 PSEUDONAME=`lsb_release -sc` 97 REV=`lsb_release -sr` 98 fi 90 99 # TODO: Validar do suse 91 100 elif [ -f /etc/SuSE-release ] ; then … … 97 106 fi 98 107 } 108 109 qualSO 110 echo $OSSTR 99 111 100 112 validaSO ()
Note: See TracChangeset
for help on using the changeset viewer.