1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-03-12 05:12:06 +01:00

ntpdinstall

This commit is contained in:
kprkpr
2016-08-21 12:50:45 +02:00
parent 8aa065df0e
commit 31fd5a3285
3 changed files with 24 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash
## Note: Some text editors in some lines its wrong the "markup color" because much '"'($) things.
sclang=$1
source translations.sh
#Try to disable ctrl+C
@@ -9,7 +10,7 @@ setterm -blank 0 -powerdown 0 -powersave off
export NCURSES_NO_UTF8_ACS=1
function pause {
echo "$(T "Pause function")"
echo "$(T "Press enter to continue...")"
read
}
@@ -29,7 +30,7 @@ exit
function particiones {
clear
mostrardialog "$(T "Questions about partitions")" "$(T "Questions about partitions dialog. Text")"
mostrardialog "$(T "Questions about partitions where system will be installed")" "$(T "Questions about partitions dialog. Text")"
clear
if [[ ! $(lsblk --output KNAME | cut -c1-3 | sort | uniq | sed '1d' | grep 'sd\|hd') ]];then
mostrardialog "ERROR" "$(T "ERROR: You dont have HDD, insert one, poweroff")"
@@ -137,7 +138,8 @@ if [[ ! $optpa -eq 3 ]];then
clear
tput setaf 6 ; echo "$(T "Your partition scheme")" ; tput setaf 9
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6 ; echo "$(T "Select root partition")" ; tput setaf 9
tput setaf 6 ; echo "$(T "Select root ('/') partition")" ; tput setaf 9
options=($(lsblk --output KNAME | sed '1d' | grep ${hd} | grep '[1-9]$'))
select opt in "${options[@]}"
do
@@ -318,7 +320,7 @@ particiones
clear
tput setaf 6
echo "$(T "Ok, last thing before start installing, summary of changes")"
echo "$(T "Part. scheme before your changes")"
echo "$(T "Partition scheme before your changes")"
tput setaf 9
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6