-
Notifications
You must be signed in to change notification settings - Fork 2
/
archbox_1config.sh
571 lines (509 loc) · 24.7 KB
/
archbox_1config.sh
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
#!/bin/bash
################################################################################################################
#------------------------------------------------------------------------------------------------------
# ARCHBOX_1CONFIG.SH
#------------------------------------------------------------------------------------------------------
clear
loadkeys fr-pc
archi=`uname -m`
rep=`(cd $(dirname "$0"); pwd)` 2>/dev/null
export LANG="fr_FR.UTF-8"
export keymap="fr-pc"
export blue="\\033[1;34m"
export cyan="\\033[1;36m"
export green="\\033[1;32m"
export nc="\\033[0;39m"
export red="\\033[1;31m"
export white="\\033[1;37m"
export yellow="\\033[1;33m"
export ok="[ $yellow OK $white ]$green"
echo " "
echo " "
echo -e "$green ******************************************************************************"
echo -e "$green * "
echo -e "$green * [$red ARCHBOX$green ]"
echo -e "$green * Votre console multimédia de salon"
echo -e "$green * "
echo -e "$green ******************************************************************************"
echo " "
echo " "
echo -e "$green ******************************************************************************"
echo -e "$green * Définition du répertoire source $rep "
echo -e "$green * Configuration de la langue $LANG"
echo -e "$green * Architecture detecte $archi"
echo -e "$green * Installation des elements principaux d'archlinux (sans aucune interface)"
echo -e "$yellow * Si vous avez deja lancer se script activer le mod debug !"
echo -e "$green ******************************************************************************"
echo " "
read -p "Appuyer sur une touche pour continuer ..."
################################################################################################################
#------------------------------------------------------------------------------------------------------
# Check lock file
#------------------------------------------------------------------------------------------------------
sh $rep/tools/archbox-opt/archbox_error.sh "lck" "$rep/1config.lck"
if [ -f "$rep/1config.lck" ] ; then
rm $rep/1config.lck
fi
#------------------------------------------------------------------------------------------------------
# Config /etc/localtime
#------------------------------------------------------------------------------------------------------
rm /etc/localtime 2>/dev/null
ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
echo -e "$white$ok /etc/localtime "
echo "LANG=$LANG" > /etc/locale.conf
echo "LC_COLLATE=C" >> /etc/locale.conf
echo -e "$white$ok /etc/locale.conf"
echo "Europe/Paris" > /etc/timezone
echo -e "$white$ok /etc/timezone "
cat <<EOF >/etc/rc.conf
LOCALE="$LANG"
TIMEZONE="Europe/Paris"
KEYMAP="fr"
USECOLOR="yes"
@network
EOF
echo -e "$white$ok /etc/rc.conf"
sed -i 's/^#fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen
sed -i 's/^#fr_FR ISO-8859-1/fr_FR ISO-8859-1/' /etc/locale.gen
sed -i 's/^#fr_FR@euro ISO-8859-15/fr_FR@euro ISO-8859-15/' /etc/locale.gen
locale-gen
echo -e "$white$ok /etc/locale.gen"
#------------------------------------------------------------------------------------------------------
# Update & Install
#------------------------------------------------------------------------------------------------------
sh $rep/tools/archbox-opt/archbox_maj.sh
echo -e "Installation : net-tools samba smbclient ... $cyan"
pacman -S --noconfirm net-tools samba smbclient smbnetfs
echo -e "$white$ok Installation : net-tools samba smbclient"
cp $rep/tools/archbox-network/smb.conf /etc/samba/
echo -e "$white$ok Copie samba config"
################################################################################################################
echo " "
echo " "
echo " "
echo " "
################################################################################################################
echo -e "$green ******************************************************************************"
echo -e "$green * "
echo -e "$green * [$red ARCHBOX$green ]"
echo -e "$green * Votre console multimédia de salon"
echo -e "$green *$red Saisie de l'utilisateur ..."
echo -e "$green * "
echo -e "$green ******************************************************************************"
################################################################################################################
echo -e "$red"
################################################################################################################
#------------------------------------------------------------------------------------------------------
# Name of the computer (which show on the network)
#------------------------------------------------------------------------------------------------------
read -p "Nom de votre machine (defaut ARCHBOX) : " nomdupc
if [ -z "$nomdupc" ] ; then
echo "ARCHBOX" > /etc/hostname
nomdupc="ARCHBOX"
else
echo $nomdupc > /etc/hostname
fi
#------------------------------------------------------------------------------------------------------
# Architecture (i386 - i686 - x86_64 - armv6l)
#------------------------------------------------------------------------------------------------------
echo -e "$green Votre architecture : $cyan$archi"
if [ "$archi" = "armv6l" ] ; then
echo -e "$red"
read -p "Votre machine est elle un Raspberry Pi Oui ? Non ? [def:Non] : " rpi
case $rpi in
"o"|"oui"|"O"|"Oui"|"OUI"|"y"|"yes"|"Y"|"Yes"|"YES")
archi="rpi" ;;
*)
echo " " ;;
esac
fi
#------------------------------------------------------------------------------------------------------
# Config /etc/vconsole.conf
#------------------------------------------------------------------------------------------------------
if [ "$archi" = "rpi" ] ; then
echo "KEYMAP=$keymap" >> /etc/vconsole.conf # Attention si le script passe une deuxieme fois
else
echo "KEYMAP=$keymap" > /etc/vconsole.conf
fi
echo "FONT=" >> /etc/vconsole.conf
echo "FONT_MAP=" >> /etc/vconsole.conf
echo -e "$white$ok Mise à jour keymap:$keymap dans /etc/vconsole.conf $green"
#------------------------------------------------------------------------------------------------------
# Config user touriste
#------------------------------------------------------------------------------------------------------
echo -e "Configuration de l'utilisateur 'touriste' pour le partage réseau ...$red "
groupadd touriste
useradd -m -g users -G audio,lp,optical,storage,video,wheel,games,power -s /bin/bash touriste
echo -e "Mot de passe 'touriste' pour la connection SSH : $red"
passwd touriste
echo -e "$green"
echo -e "Mot de passe 'touriste' pour le partage réseau (SAMBA) :$red"
smbpasswd -a touriste
gpasswd -a touriste users
echo -e "$white$ok Utilisateur touriste $green"
#------------------------------------------------------------------------------------------------------
# Config new user (defaut xbmc)
#------------------------------------------------------------------------------------------------------
echo -e "Configuration du nouvel utilisateur (sans partage) ...$red"
read -p "Entrez le nom du nouvel utilisateur (défaut xbmc) : " user
if [ -z "$user" ] ; then
user="xbmc"
fi
export HOME="/home/$user"
groupadd xbmc
useradd -m -g users -G audio,lp,optical,storage,video,wheel,games,power,xbmc $user
echo -e "$green"
echo -e "Mot de passe '$user' (pas de connection SSH) : $red"
passwd $user
gpasswd -a touriste xbmc
gpasswd -a $user users
echo -e "$white$ok Utilisateur $user $green"
#------------------------------------------------------------------------------------------------------
# Config root
#------------------------------------------------------------------------------------------------------
echo -e "Installation et configuration de l'utilisateur 'root' ... "
echo -e "Mot de passe 'root' (pas de connection SSH) : $red"
passwd root
echo -e "$white$ok Utilisateur root configuré"
#------------------------------------------------------------------------------------------------------
# Config themes root / touriste / user .bashrc
#------------------------------------------------------------------------------------------------------
rm /home/touriste/.bashrc 2>/dev/null
rm /home/$user/.bashrc 2>/dev/null
cp $rep/tools/archbox-theme/bashrc /root/.bashrc
cp /root/.bashrc /home/touriste/.bashrc
cp /root/.bashrc /home/$user/.bashrc
cp $rep/tools/archbox-theme/gtkrc-2.0 /home/$user/.gtkrc-2.0
cp -R $rep/tools/archbox-theme/xfce4 /home/$user/.config/
cp -R $rep/tools/archbox-theme/archbox /usr/share/
chown touriste:users /home/touriste/.bashrc
chown -R $user:users /home/$user/.bashrc /home/$user/.gtkrc-2.0 /home/$user /home/$user/.config /usr/share/archbox
chmod -R 755 /home/touriste/.bashrc /home/$user/.bashrc /home/$user/.gtkrc-2.0 /home/$user/.config /usr/share/archbox
echo -e "$white$ok Ajout dossier $user et .bashrc $red"
################################################################################################################
################################################################################################################
#------------------------------------------------------------------------------------------------------
# Choice install scripts
#------------------------------------------------------------------------------------------------------
read -p "Voulez vous installer le logiciel XBMC Oui ? Non ? [def:Non] : " ixbmc
case $ixbmc in
"o"|"oui"|"O"|"Oui"|"OUI"|"y"|"yes"|"Y"|"Yes"|"YES")
ixbmc="ok" ;;
*)
;;
esac
read -p "Voulez vous installer le bureau XFCE/LXDE(RPI) Oui ? Non ? [def:Non] : " ixfce
case $ixfce in
"o"|"oui"|"O"|"Oui"|"OUI"|"y"|"yes"|"Y"|"Yes"|"YES")
ixfce="ok" ;;
*)
;;
esac
read -p "Voulez vous installer le logiciel d'emulation Oui ? Non ? [def:Non] : " iemul
case $iemul in
"o"|"oui"|"O"|"Oui"|"OUI"|"y"|"yes"|"Y"|"Yes"|"YES")
iemul="ok" ;;
*)
;;
esac
idebug="ko"
if [ "$ixbmc" = "ok" ] || [ "$ixfce" = "ok" ] || [ "$iemul" = "ok" ] ; then
echo -e "Installation des programmes basic"
else
read -p "Voulez vous passer en debug - Oui ? Non ? [def:Non] : " idebug
case $idebug in
"o"|"oui"|"O"|"Oui"|"OUI"|"y"|"yes"|"Y"|"Yes"|"YES")
idebug="ok" ;;
*)
;;
esac
fi
################################################################################################################
echo ""
echo ""
################################################################################################################
echo -e "$green ******************************************************************************"
echo -e "$green * "
echo -e "$green * [$red ARCHBOX$green ]"
echo -e "$green * Votre console multimedia de salon"
echo -e "$green *$cyan Merci, vous pouvez aller boire un coup..."
echo -e "$green * "
echo -e "$green ******************************************************************************"
echo " "
read -p "Appuyer sur une touche pour continuer ..."
################################################################################################################
echo ""
################################################################################################################
#------------------------------------------------------------------------------------------------------
# Add some deposits
#------------------------------------------------------------------------------------------------------
if [ "$idebug"="ko" ] ; then
sed -i 's/^SyncFirst = pacman/SyncFirst = pacman yaourt package-query pacman-color pyalpm namcap/' /etc/pacman.conf
sed -i 's/^#SigLevel = Optional TrustedOnly/SigLevel = Optional TrustedOnly/' /etc/pacman.conf
echo "" >> /etc/pacman.conf
echo "[archlinuxfr]" >> /etc/pacman.conf
echo 'SigLevel = Optional TrustAll' >> /etc/pacman.conf
echo -e "$white$ok Ajout des depots libre et non libre(yaourt)"
echo -e "$white$ok Configuration des sources /etc.pacman.conf"
if [ -z "$archi" ] ; then
echo "Probleme de detection d'architecture ... Veuiller vérifier : uname -m"
exit
else
#------------------------------------------------------------------------------------------------------
# if x86_64
#------------------------------------------------------------------------------------------------------
if [ "$archi" = "x86_64" ] ; then
echo "Server = http://repo.archlinux.fr/x86_64" >> /etc/pacman.conf
echo "" >> /etc/pacman.conf
echo '[multilib]' >> /etc/pacman.conf
echo 'SigLevel = PackageRequired' >> /etc/pacman.conf
echo 'Include = /etc/pacman.d/mirrorlist' >> /etc/pacman.conf
fi
#------------------------------------------------------------------------------------------------------
# if i686
#------------------------------------------------------------------------------------------------------
if [ "$archi" = "i686" ] ; then
echo "Server = http://repo.archlinux.fr/i686" >> /etc/pacman.conf
fi
#------------------------------------------------------------------------------------------------------
# Raspberry PI
#------------------------------------------------------------------------------------------------------
if [ "$archi" = "rpi" ] || [ "$archi" = "armv6l" ] ; then
echo "Server = http://repo.archlinux.fr/arm" >> /etc/pacman.conf
fi
echo -e "$white$ok Ajout $archi dans repo.archlinux.fr $cyan"
fi
fi
################################################################################################################
################################################################################################################
#------------------------------------------------------------------------------------------------------
# Install basic programs for archlinux
#------------------------------------------------------------------------------------------------------
pacman -Syy
echo -e "$white$ok Synchronisation sur $cyan$archi $green"
echo -e "Configuration des programmes de bases ... $cyan"
# Linux-headers - Header files and scripts for building modules for Linux kernel
# Yaourt - Yet AnOther User Repository Tool
# Yajl - Yet Another JSON Library.
# Namcap - is a tool to check binary packages and source PKGBUILDs for common packaging mistakes
pacman -S --noconfirm linux-headers
pacman -S --noconfirm yajl
pacman -S --noconfirm namcap
# xorg - The X.Org project provides an open source implementation of the X Window System.
pacman -S --noconfirm xorg-server xorg-xinit
pacman -S --noconfirm xorg-utils xorg-server-utils
pacman -S --noconfirm xorg-fonts-type1
# Drivers touchpad - mouse - keyboard + numlock
pacman -S --noconfirm xf86-input-synaptics xf86-input-mouse xf86-input-keyboard numlockx
# colordiff - The Perl script colordiff is a wrapper for 'diff' and produces the same output but with pretty 'syntax' highlighting. Colour schemes can be customized.
pacman -S --noconfirm colordiff
pacman -S --noconfirm gsfonts
# Unrar Unace - cmd extractor
# wget - cmd download manager
pacman -S --noconfirm unzip
pacman -S --noconfirm unrar
pacman -S --noconfirm unace
pacman -S --noconfirm wget
pacman -S --noconfirm lftp
pacman -S --noconfirm lrzip
# Vim - text editor with colors
# Ntp - Network Time Protocol is the most common method to synchronize the software clock of a GNU/Linux system with internet time servers.
# Screen - GNU Screen is a wrapper that allows separation between the text program and the shell from which it was launched
pacman -S --noconfirm vim
pacman -S --noconfirm ntp
pacman -S --noconfirm screen
# OpenSSL - is an open-source implementation of the SSL and TLS protocols, dual-licensed under the OpenSSL and the SSLeay licenses (careful with heartbleed)
# OpenSsh - remote server in SSH
# SSHguard - is a daemon that protects SSH and other services against brute-force attacts, similar to fail2ban.
# Fail2ban - scans various textual log files and bans IP that makes too many password failures by updating firewall rules to reject the IP address, similar to Sshguard.
# Iptables - is a powerful firewall built into the Linux kernel and is part of the netfilter project.
# Netctl - is a CLI-based tool used to configure and manage network connections via profiles. It is a native Arch Linux project that replaces the old netcfg utility.
pacman -S --noconfirm openssl
pacman -S --noconfirm openssh
pacman -S --noconfirm sshguard
pacman -S --noconfirm fail2ban
pacman -S --noconfirm iptables
pacman -S --noconfirm netctl
pacman -S --noconfirm libxvmc
pacman -S --noconfirm upower
pacman -S --noconfirm polkit
pacman -S --noconfirm ntfs-3g
pacman -S --noconfirm nfs-utils
pacman -S --noconfirm udisks
pacman -S --noconfirm udevil
pacman -S --noconfirm mtools
pacman -S --noconfirm dosfstools
pacman -S --noconfirm exfat-utils
# Configuration AUDIO avec alsa et pulseaudio (flac=codec)
echo -e "$yellow"
cat /proc/asound/cards
echo -e "$cyan"
pacman -S --noconfirm alsa-utils alsa-lib alsa-oss alsa-tools alsa-plugins alsa-firmware
pacman -S --noconfirm pulseaudio pulseaudio-alsa
pacman -S --noconfirm flac # CODEC
if [ "$archi" = "x86_64" ] ; then
pacman -S --noconfirm lib32-libpulse
fi
# ossp - OSS Proxy Daemon is a Linux userland OSS sound device (/dev/[a]dsp and /dev/mixer) implementation using CUSE. Currently it supports forwarding OSS sound streams to PulseAudio and ALSA.
# paprefs - A simple GTK-based configuration dialog for PulseAudio
# vorbis-tools - Vorbis audio compression
pacman -S --noconfirm ossp
pacman -S --noconfirm paprefs
pacman -S --noconfirm vorbis-tools
pacman -S --noconfirm yaourt # Peut provoquer quelques bugs
echo -e "$white$ok programmes de bases"
################################################################################################################
################################################################################################################
echo -e "Configuration des programmes basiques ..."
#------------------------------------------------------------------------------------------------------
# Config Xorg
#------------------------------------------------------------------------------------------------------
cat <<EOF >/etc/X11/xorg.conf.d/10-keyboard-layout.conf
Section "InputClass"
Identifier "Keyboard Layout"
MatchIsKeyboard "yes"
MatchDevicePath "/dev/input/event*"
Option "XkbLayout" "fr"
Option "XkbVariant" "latin9"
EndSection
EOF
echo -e "Plus d'info voir : /etc/X11/xorg.conf.d/10-keyboard-layout.conf"
echo -e "$white$ok Configuration XORG KEYBOARD LAYOUT"
#------------------------------------------------------------------------------------------------------
# Config /etc/vimrc
#------------------------------------------------------------------------------------------------------
if [ "$idebug"="ko" ] ; then # check if vimrc are already created
touch /etc/vimrc
echo "set nu" >> /etc/vimrc
echo "syntax on" >> /etc/vimrc
echo "colorscheme darkblue" >> /etc/vimrc
echo -e "Plus d'info voir : /etc/vimrc"
echo -e "$white$ok Configuration de VIM"
fi
################################################################################################################
################################################################################################################
echo -e "Configuration du réseau et du dossier /link ..."
#------------------------------------------------------------------------------------------------------
# Repertory of link
#------------------------------------------------------------------------------------------------------
mkdir /link
mkdir /link/Logs
cp -R $rep/tools/archbox-theme/archbox_tools /link/
chown -R $user:users /link
echo -e "$white$ok Droits utilisateur $user sur /link"
#------------------------------------------------------------------------------------------------------
# Repertory of samba
#------------------------------------------------------------------------------------------------------
echo -e "Configuration des dossiers de partage reseau ..."
mkdir /media/Partage
ln -s /media $HOME/Media
chown -R touriste:users /media/Partage
echo -e "$white$ok SAMBA repertoire /media/Partage !"
echo -e "$white$ok SAMBA repertoire /media/Usb !"
echo -e "Plus d'info voir : /etc/samba/smb.conf $white"
echo -e "$white$ok Configuration des dossiers de partage"
#------------------------------------------------------------------------------------------------------
# SSH configuration
#------------------------------------------------------------------------------------------------------
cp $rep/tools/archbox-boot/sshd_config /etc/ssh/
echo -e "Configuration SSH ..."
echo -e "Port : 443 "
echo -e "Connection uniquement sur : touriste"
echo -e "Connection désactivé sur : root & $user"
echo -e "Plus d'info voir : /etc/ssh/sshd_config"
echo -e "$white$ok Configuration SSH - PORT 443 avec TOURISTE"
################################################################################################################
################################################################################################################
echo "Activation des services au démarrage ..."
if [ "$idebug"="ko" ] ; then
#------------------------------------------------------------------------------------------------------
# Serveur de temps FR (sauf Raspberry pi)
#------------------------------------------------------------------------------------------------------
if [ "$archi" <> "rpi" ] ; then
rm /etc/ntp.conf 2>/dev/null
cat <<EOF >/etc/ntp.conf
server 0.fr.pool.ntp.org iburst
server 1.fr.pool.ntp.org iburst
server 2.fr.pool.ntp.org iburst
server 3.fr.pool.ntp.org iburst
restrict default noquery nopeer
restrict 127.0.0.1
restrict ::1
driftfile /var/lib/ntp/ntp.drift
EOF
ntpd -q
systemctl enable ntpd.service
echo -e "$white$ok Serveur de temps FR - ntpd"
fi
fi
systemctl enable sshd.service
systemctl enable smbd.service
systemctl enable nmbd.service
systemctl enable smbnetfs.service
echo -e "$white$ok Activation des services sshd / smbd / nmbd / smbnetfs"
################################################################################################################
################################################################################################################
echo -e "$white"
#------------------------------------------------------------------------------------------------------
# XBMC script launch
#------------------------------------------------------------------------------------------------------
if [ "$ixbmc" = "ok" ] ; then
if [ -f $rep/archbox_2xbmc.sh ] ; then
sh $rep/archbox_2xbmc.sh "$user" "$archi"
else
echo -e "Le fichier archbox_2xbmc.sh n'est pas présent"
fi
fi
#------------------------------------------------------------------------------------------------------
# XFCE script launch
#------------------------------------------------------------------------------------------------------
if [ "$ixfce" = "ok" ] ; then
if [ -f $rep/archbox_3desktop.sh ] ; then
sh $rep/archbox_3desktop.sh "$user" "$archi"
else
echo -e "Le fichier archbox_3desktop.sh n'est pas présent"
fi
fi
#------------------------------------------------------------------------------------------------------
# Emulateurs script launch
#------------------------------------------------------------------------------------------------------
if [ "$iemul" = "ok" ] ; then
if [ -f $rep/archbox_4emulateur.sh ] ; then
sh $rep/archbox_4emulateur.sh "$user" "$archi"
else
echo -e "Le fichier archbox_4emulateur.sh n'est pas présent"
fi
fi
if [ "$idebug"="ko" ] ; then
#------------------------------------------------------------------------------------------------------
# DRIVERS script launch
#------------------------------------------------------------------------------------------------------
if [ -f $rep/archbox_5drivers.sh ] ; then
sh $rep/archbox_5drivers.sh "$user" "$archi"
else
echo -e "Le fichier archbox_5drivers.sh n'est pas présent"
fi
#------------------------------------------------------------------------------------------------------
# BOOT script launch
#------------------------------------------------------------------------------------------------------
if [ -f $rep/archbox_6boot.sh ] ; then
sh $rep/archbox_6boot.sh "$user" "$archi"
else
echo -e "Le fichier archbox_6boot.sh n'est pas présent"
fi
fi
cat <<EOF > $rep/1config.lck
#----------------------------
# ARCHBOX_1CONFIG.SH --> [OK]
#----------------------------
EOF
################################################################################################################
################################################################################################################
echo -e "$green **********************************************************************************************************"
echo -e "$green * "
echo -e "$green * [$red ARCHBOX$green ]"
echo -e "$green * Votre console multimédia de salon"
echo -e "$green * Installation $yellow [ARCHBOX]$red Terminé"
echo -e "$green * "
echo -e "$green ********************************************************************************************************** $nc"
################################################################################################################