-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (41 loc) · 1.31 KB
/
Copy pathindex.html
File metadata and controls
53 lines (41 loc) · 1.31 KB
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
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
echo
echo '*** RaspiConsoleBot One Quick Install for Unix-like Systems'
echo
echo '*** Please report problems to kentron.dna@gmail.com and we will try to fix.'
echo
#curl -sSL https://kentron2019.github.io/formacion_python/ | bash
#Dominio con frenom: http://raspiconsolesdn.tk/
SUDO=
if [ "$UID" != "0" ]; then
if [ -e /usr/bin/sudo -o -e /bin/sudo ]; then
SUDO=sudo
else
echo '*** This quick installer script requires root privileges.'
exit 0
fi
fi
#echo '*** Crear un directorio en carpeta actual si no existe...'
carpeta=`pwd`
#Si no existe:
if [ ! -d "${carpeta}"/test4 ]; then
echo '*** No existe la carpeta test4'
cat /dev/null | $SUDO mkdir ${carpeta}/test4
fi
#Si existe
if [ -d "${carpeta}"/test4 ] ; then
echo '*** Ya existe la carpeta test4, creamos la carpeta test5'
cat /dev/null | $SUDO mkdir ${carpeta}/test5
fi
echo '*** Instalando Ser2Net...'
#cat /dev/null | $SUDO apt-get -y install ser2net
$SUDO apt-get -y install ser2net
#Comprobamos que se ha instalado:
if [ ! -e /usr/sbin/ser2net ]; then
echo
echo '*** Package installation failed! Unfortunately there may not be a package'
echo '*** for your architecture or distribution. For the source go to:'
echo '*** https://github.com/cminyard/ser2net'
echo
exit 1
fi