-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest
64 lines (54 loc) · 1.74 KB
/
test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#! /bin/bash
clear
# Variables
#
ROJO="\033[1;31m"
NORMAL="\033[0m"
AZUL="\033[1;34m"
DISTRO=$(lsb_release -cs)
# Este script funciona en Ubuntu 18.04, bionic y Ubuntu 20.04, así como las derivadas en linux Mint.
#
echo ""
echo -e "${ROJO}Solicitando contraseña del usuario con derechos de administrador${NORMAL}"
echo ""
echo -e "${ROJO}Asking password of the user with administrations rights${NORMAL}"
echo ""
sudo echo ""
# Borrando antiguos archivos de smartdre o lliurex-smart
#
echo ""
echo -e "${ROJO}Borrando si existen archivos de anteriores instalaciones${NORMAL}"
echo ""
echo -e "${ROJO} Deleting if there are files from previous installations${NORMAL}"
echo ""
sudo chmod +x uninstall-smartdre
#sudo ./uninstall-smartdre
#Instalación paquetes/drivers nwfermi en el sistema host
#
if [[ $DISTRO = focal || $DISTRO = ulyana || $DISTRO = ulyssa ]]
then
echo ""
echo -e "${AZUL}Tu sistema Linux está basado en Ubuntu focal, instalando drivers...${NORMAL}"
echo ""
echo -e "${AZUL}Your system is based on Ubuntu Focal, installing drivers...${NORMAL}"
echo ""
elif [[ $DISTRO = bionic || $DISTRO = tricia || $DISTRO = tina || $DISTRO = tessa || $DISTRO = tara ]]
then
echo ""
echo -e "${AZUL}Tu sistema Linux está basado en Ubuntu bionic, instalando drivers...${NORMAL}"
echo ""
echo -e "${AZUL}Your system is based on Ubuntu Bionic, installing drivers...${NORMAL}"
echo ""
else
echo ""
echo -e "${ROJO}Esta instalación no es compatible con tu sistema${NORMAL}"
echo ""
echo -e "${ROJO}This install process is not compatible with your system${NORMAL}"
echo ""
exit
fi
echo ""
echo -e "${AZUL}continúa el script...${NORMAL}"
echo ""
echo -e "${AZUL}the script continues...${NORMAL}"
echo ""