From 88c4d809d7568bc1524ede14f522c191b33a5f29 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 19 Mar 2020 09:37:11 +0100 Subject: Implement Colour Test --- archinstall.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'archinstall.sh') diff --git a/archinstall.sh b/archinstall.sh index cdba01f..3a89d5b 100644 --- a/archinstall.sh +++ b/archinstall.sh @@ -60,8 +60,10 @@ export INTERNET_TEST_SERVER="archlinux.org" export INTERNET_TEST_PING_TIMEOUT=1 # in seconds export FIRST_STAGE_LINK="https://raw.githubusercontent.com/xengineering/archinstall/$BRANCH/stages/first_stage.sh" export SECOND_STAGE_LINK="https://raw.githubusercontent.com/xengineering/archinstall/$BRANCH/stages/second_stage.sh" -export PACKAGE_LIST="base linux linux-firmware networkmanager nano grub" # maybe this is requiered: efibootmgr +export PACKAGE_LIST="base linux linux-firmware grub networkmanager nano" # maybe this is requiered: efibootmgr export DEFAULT_PASSWORD="archinstall" +export OK="\033[m[ \033[32mOK\033[m ]" +export ERROR="\033[m[ \033[32mERROR\033[m ]" # Variables @@ -79,7 +81,8 @@ export hostname="archlinux" # will be set to a user-chosen hostname # Check internet connection if ping -w $INTERNET_TEST_PING_TIMEOUT -c 1 $INTERNET_TEST_SERVER; then - echo "Internet connection is ready - OK" + printf "$OK Internet connection is ready\n" + printf "$ERROR An error would look like this\n" echo "" else echo "Could not reach INTERNET_TEST_SERVER '$INTERNET_TEST_SERVER' - FAILED" @@ -87,6 +90,9 @@ else fi +exit 99 + + # Update the system clock timedatectl set-ntp true -- cgit v1.2.3-70-g09d2