-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPintArch.sh
More file actions
98 lines (91 loc) · 3.76 KB
/
PintArch.sh
File metadata and controls
98 lines (91 loc) · 3.76 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
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
#!/bin/bash
#
# PintArch
#-------------------------------------------------------------------------
# ____ _ _ _ _
# | _ \(_)_ __ | |_ / \ _ __ ___| |__
# | |_) | | '_ \| __| / _ \ | '__/ __| '_ \
# | __/| | | | | |_ / ___ \| | | (__| | | |
# |_| |_|_| |_|\__/_/ \_|_| \___|_| |_|
#
#-------------------------------------------------------------------------
# Initial Script that start the scripts for each stages of instalation
# Find the name of the folder the scripts are in
counter() {
#count=10
# Count down to 0 using a C-style arithmetic expression inside `((...))`.
# Note: Increment the count first so as to simplify the `while` loop.
#(( ++count ))
#echo
#while (( --count >= 0 )); do
# echo -n -
# echo -n $count
# sleep 1
#done
clear
echo -ne "
-------------------------------------------------------------------------
____ _ _ _ _
| _ \(_)_ __ | |_ / \ _ __ ___| |__
| |_) | | '_ \| __| / _ \ | '__/ __| '_ \ NOVO
| __/| | | | | |_ / ___ \| | | (__| | | |
|_| |_|_| |_|\__/_/ \_|_| \___|_| |_|
"
}
set -a # Export all variables
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
SCRIPTS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"/scripts
CONFIGS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"/configs
echo -ne "
-------------------------------------------------------------------------
____ _ _ _ _
| _ \(_)_ __ | |_ / \ _ __ ___| |__
| |_) | | '_ \| __| / _ \ | '__/ __| '_ \ NOVO
| __/| | | | | |_ / ___ \| | | (__| | | |
|_| |_|_| |_|\__/_/ \_|_| \___|_| |_|
-------------------------------------------------------------------------
BY https://dpnpinto.github.io
-------------------------------------------------------------------------
Diretorios da Instalação da PintArch automatizada
-------------------------------------------------------------------------
"
echo 'Diretório da Solução->' $SCRIPT_DIR
echo 'Diretório dos Scripts->' $SCRIPTS_DIR
echo 'Diretório das Configurações->' $CONFIGS_DIR
echo -ne "
-------------------------------------------------------------------------
"
counter
set +a
echo -ne "
-------------------------------------------------------------------------
Inicio da instalação do PintArch automatizada
-------------------------------------------------------------------------
"
loadkeys pt-latin1 # set keybord keys to PT
# set varibles a store in setup.conf
( bash $SCRIPT_DIR/scripts/startup.sh )|& tee startup.log
( bash $SCRIPT_DIR/scripts/0-preinstall.sh )|& tee 0-preinstall.log
source $CONFIGS_DIR/setup.conf
( arch-chroot /mnt bash $HOME/PintArch/scripts/1-setup.sh )|& tee 1-setup.log
# set user enviroment if selected
if [[ ! $DESKTOP_ENV == consola ]]; then
( arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- bash /home/$USERNAME/PintArch/scripts/2-user.sh )|& tee 2-user.log
fi
# copy instalation logs to directory
cp -v *.log /mnt/home/$USERNAME/.config/
echo -ne "
-------------------------------------------------------------------------
____ _ _ _ _
| _ \(_)_ __ | |_ / \ _ __ ___| |__
| |_) | | '_ \| __| / _ \ | '__/ __| '_ \ NOVO
| __/| | | | | |_ / ___ \| | | (__| | | |
|_| |_|_| |_|\__/_/ \_|_| \___|_| |_|
-------------------------------------------------------------------------
Fim da intalação do PintArch Automatizada
-------------------------------------------------------------------------
Por favor retirar o dispositivo de arranque e reiniciar
"
umount -R /mnt # unmout everything before restart
read -p "ENTER para reboot"
sudo reboot now