-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy patharcris-install
212 lines (156 loc) · 3.83 KB
/
arcris-install
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
#!/usr/bin/env bash
# git add .
# git commit -m 'testing'
# git push -f
# curl -L is.gd/arcrisnew > arcris ; sh arcris
echo ""
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
locale=$(locale-gen)
dialog --stdout --infobox "$locale" 10 50
echo "LANG=en_US.UTF-8" > /etc/locale.conf
export LANG=en_US.UTF-8
clear
welcome_title=" -| Language Select |- "
cmd=(dialog --nocancel --backtitle "Welcome : $(date "+%A, %B %d, %Y - %I:%M %p")" --title "${welcome_title}" \
--menu "\nDonations in: www.patreon.com/codigocristo\n\nSelect the language of the installer:\n\n---------------------------------------------\n\nDonaciones en: www.patreon.com/codigocristo\n\nSeleccione el idioma del instalador:\n " 20 60 10)
options=(1 "Español"
2 "English"
3 "Russian")
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices
do
case $choice in
1)
source languages/español.conf
echo "$LANGUAGE UTF-8" > /etc/locale.gen
locale=$(locale-gen)
dialog --backtitle "$title" \
--title "${idiom}" --stdout --ok-label "${oklabel}" \
--infobox "$locale" 10 50
echo "LANG=$LANGUAGE" > /etc/locale.conf
export LANG=$LANGUAGE
setfont lat5-16
;;
2)
source languages/english.conf
echo "$LANGUAGE UTF-8" > /etc/locale.gen
locale=$(locale-gen)
dialog --backtitle "$title" \
--title "${idiom}" --stdout --ok-label "${oklabel}" \
--infobox "$locale" 10 50
echo "LANG=$LANGUAGE" > /etc/locale.conf
export LANG=$LANGUAGE
setfont default8x16
;;
3)
# vconsole.conf
# FONT="cyr-sun16"
# ls /usr/share/consolefonts
# ls /usr/share/kbd/consolefonts | grep 8x16
# setfont cyr-sun16
# showconsolefont
source languages/russian.conf
echo "$LANGUAGE UTF-8" > /etc/locale.gen
locale=$(locale-gen)
dialog --backtitle "$title" \
--title "${idiom}" --stdout --ok-label "${oklabel}" \
--infobox "$locale" 20 50
echo "LANG=$LANGUAGE" > /etc/locale.conf
export LANG=$LANGUAGE
setfont cyr-sun16
;;
esac
done
sectionuser=0
sectionubi=0
sectionlang=0
sectionshell=0
sectiondisk=0
sectionkernel=0
sectionvideo=0
sectionenv=0
main () {
while true; do
menuprincipal=(dialog --keep-tite --default-item "${current_item}" --backtitle "${title}" --title "${title_menu}" \
--ok-label "${select_ok_label}" --nocancel --no-tags \
--menu "${text_menu}" ${highmenu} ${widthmenu} 10)
options=( 1 "${menu1} ${submenu1}"
2 "${menu2} ${submenu2}"
3 "${menu3} ${submenu3}"
4 "${menu4} ${submenu4}"
5 "${menu5} ${submenu5}"
6 "${menu6} ${submenu6}"
7 "${menu7} ${submenu7}"
8 "${menu8} ${submenu8}"
9 "${menu9} ${submenu9}"
10 "${menu10}"
11 "${menu11}" )
choices=$("${menuprincipal[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices
do
case $choice in
1)
source lib/user
users
clear
current_item="2"
;;
2)
source lib/zoneinfo
locality
current_item="3"
;;
3)
source lib/lang
lang
current_item="4"
;;
4)
source lib/shellsystem
shellsystem
current_item="5"
;;
5)
source lib/disks
disksystem
current_item="6"
;;
6)
source lib/kernel
kerneles
current_item="7"
;;
7)
source lib/video
drivervideo
;;
8)
source lib/environment
environment
current_item="9"
;;
9)
source lib/extras
extraprogram
current_item="10"
;;
10)
source lib/install
install
;;
11)
cd
rm -r arcris arcris-master arcris-master.tar.gz
clear && echo ""
echo -e ""
echo -e "${msg_end}"
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' _
echo -e ""
echo "" && sleep 3 && clear && setfont default8x16 && exit
;;
esac
done
done
}
main
# Codigo cristo pal mundo