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