|
@@ -20,7 +20,7 @@ OSInfo() {
|
|
REV=$(grep ^VERSION= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
|
|
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)
|
|
ID_LIKE=$(grep ^ID_LIKE= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
|
|
for i in $ID_LIKE; do
|
|
for i in $ID_LIKE; do
|
|
- printf "$i\n"
|
|
|
|
|
|
+ #printf "$i\n"
|
|
case $i in
|
|
case $i in
|
|
debian|ubuntu)
|
|
debian|ubuntu)
|
|
debianOS=true
|
|
debianOS=true
|
|
@@ -40,16 +40,19 @@ OSInfo() {
|
|
# Familia Debian (Debian, Ubuntu, Linux Mint, ...)
|
|
# Familia Debian (Debian, Ubuntu, Linux Mint, ...)
|
|
DIST="Debian"
|
|
DIST="Debian"
|
|
REV=""
|
|
REV=""
|
|
|
|
+ ID_LIKE="debian"
|
|
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"
|
|
rhelOS=true
|
|
rhelOS=true
|
|
else
|
|
else
|
|
# Other Linux (No Soportado)
|
|
# Other Linux (No Soportado)
|
|
DIST=""
|
|
DIST=""
|
|
REV=""
|
|
REV=""
|
|
|
|
+ ID_LIKE=""
|
|
fi
|
|
fi
|
|
else
|
|
else
|
|
#UNIX, OS X, ... (No Soportado)
|
|
#UNIX, OS X, ... (No Soportado)
|
|
@@ -57,7 +60,7 @@ OSInfo() {
|
|
REV=""
|
|
REV=""
|
|
fi
|
|
fi
|
|
#printf " $DIST $REV\n"
|
|
#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() {
|
|
comprobarRoot() {
|