aboutsummaryrefslogtreecommitdiffstats
path: root/joes-arch-install.sh
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-27 02:25:19 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-27 02:25:19 +0100
commit8c5fa816475c6e44751e40dcb8a8060858db744b (patch)
tree3b260011bb9dc9b573a049ac4a3c51e8d6a4cc86 /joes-arch-install.sh
parentBetter functions arrangement (diff)
downloadarch-installer-8c5fa816475c6e44751e40dcb8a8060858db744b.tar.gz
arch-installer-8c5fa816475c6e44751e40dcb8a8060858db744b.tar.bz2
arch-installer-8c5fa816475c6e44751e40dcb8a8060858db744b.tar.xz
arch-installer-8c5fa816475c6e44751e40dcb8a8060858db744b.tar.zst
arch-installer-8c5fa816475c6e44751e40dcb8a8060858db744b.zip
Few additions
Diffstat (limited to 'joes-arch-install.sh')
-rwxr-xr-xjoes-arch-install.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/joes-arch-install.sh b/joes-arch-install.sh
index 8ddb6ae..18970fd 100755
--- a/joes-arch-install.sh
+++ b/joes-arch-install.sh
@@ -59,9 +59,8 @@ jo_goodbye() {
}
jo_chk_internet() {
- clear
dialog --infobox "Verifying that you are connected to the Internet, please wait..." 4 40
- sleep 2
+ sleep 1
if ! wget -q --spider https://www.archlinux.org/; then
dialog --title "ERROR"\
--msgbox "Critical error:\n\nIt seems that you are not connected to the internet,\
@@ -78,9 +77,9 @@ jo_set_hstnm() {
hstnm=$(dialog\
--nocancel --title "$1"\
--inputbox "Please choose a hostname for this machine.\
-\n\nIf you are running on a managed network,\
+\n\nIf you are running on a managed network, \
please ask your network administrator for an appropriate name."\
- 12 55\
+ 12 53\
3>&1 1>&2 2>&3 3>&-)
if [ "$hstnm" = "" ]; then
dialog --infobox "Hostname is empty, retrying..." 3 34
@@ -91,15 +90,18 @@ please ask your network administrator for an appropriate name."\
jo_pacstrap() {
echo
+ dialog --title "$1" --infobox "Installing $1" 3 50
echo -e "${BCYAN}Installing ${BYELLOW}$1${END}"
if pacstrap /mnt/arch "$1" > /dev/null; then
- echo -e "${BGREEN}$1 installed${END}"
+ dialog --title "$1" --infobox "$1 installed" 3 50
+ sleep 2
fi
}
#==================================================================================================#
#--------------------------------------------- START ----------------------------------------------#
#==================================================================================================#
+clear
dialog --title "Welcome" --msgbox "Welcome to Joe's Arch Linux installation utility\!" 6 35
#==================================================================================================#
#--------------------------------------- INTERNET CHECK -------------------------------------------#