|
@@ -191,23 +191,28 @@ OSInfo() {
|
|
|
DIST="Debian"
|
|
|
REV=""
|
|
|
ID_LIKE="debian"
|
|
|
+ VERSION=""
|
|
|
debianOS=true
|
|
|
elif [ -f /etc/redhat-release ]; then
|
|
|
# Familia Red-Hat (RHEL, Fedora, CentOS, ...)
|
|
|
DIST="Red-Hat"
|
|
|
REV=""
|
|
|
ID_LIKE="rhel"
|
|
|
+ VERSION=""
|
|
|
rhelOS=true
|
|
|
else
|
|
|
# Other Linux (No Soportado)
|
|
|
DIST=""
|
|
|
REV=""
|
|
|
ID_LIKE=""
|
|
|
+ VERSION=""
|
|
|
fi
|
|
|
else
|
|
|
# UNIX, OS X, ... (No Soportado)
|
|
|
DIST=$OS
|
|
|
REV=""
|
|
|
+ ID_LIKE=""
|
|
|
+ VERSION=""
|
|
|
fi
|
|
|
#printf " $OS $DIST $REV\n"
|
|
|
HDInfo=$(df -h | head -1)"\n"$(df -h | grep ^/dev/sd)"\n"$(df -h | grep ^/dev/mapper)
|