|
@@ -20,7 +20,7 @@ OSInfo() {
|
|
|
REV=$(grep ^VERSION= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
|
|
|
ID_LIKE=$(grep ^ID_LIKE= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
|
|
|
for i in $ID_LIKE; do
|
|
|
- printf "$i\n"
|
|
|
+ #printf "$i\n"
|
|
|
case $i in
|
|
|
debian|ubuntu)
|
|
|
debianOS=true
|
|
@@ -40,16 +40,19 @@ OSInfo() {
|
|
|
# Familia Debian (Debian, Ubuntu, Linux Mint, ...)
|
|
|
DIST="Debian"
|
|
|
REV=""
|
|
|
+ ID_LIKE="debian"
|
|
|
debianOS=true
|
|
|
elif [ -f /etc/redhat-release ]; then
|
|
|
# Familia Red-Hat (RHEL, Fedora, CentOS, ...)
|
|
|
DIST="Red-Hat"
|
|
|
REV=""
|
|
|
+ ID_LIKE="rhel"
|
|
|
rhelOS=true
|
|
|
else
|
|
|
# Other Linux (No Soportado)
|
|
|
DIST=""
|
|
|
REV=""
|
|
|
+ ID_LIKE=""
|
|
|
fi
|
|
|
else
|
|
|
#UNIX, OS X, ... (No Soportado)
|
|
@@ -57,7 +60,7 @@ OSInfo() {
|
|
|
REV=""
|
|
|
fi
|
|
|
#printf " $DIST $REV\n"
|
|
|
- HDInfo=$(df -h | head -1)"\n"$(df -h | grep ^/dev/sd)
|
|
|
+ HDInfo=$(df -h | head -1)"\n"$(df -h | grep ^/dev/sd)"\n"$(df -h | grep ^/dev/mapper)
|
|
|
}
|
|
|
|
|
|
comprobarRoot() {
|