mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add color to start message
This commit is contained in:
parent
9f61fd545d
commit
750317c5b4
2 changed files with 16 additions and 16 deletions
|
@ -10,24 +10,24 @@ build ()
|
|||
echo -e "\033[1m--------------------------------------------\033[0m" >> "${MOTD}"
|
||||
echo -e "\033[1mConsoles:\033[0m" >> "${MOTD}"
|
||||
echo -e " - Virtual consoles \033[1m1-6\033[0m are active." >> "${MOTD}"
|
||||
echo -e " - To change virtual console use \033[32mALT + F(1-6)\033[0m" >> "${MOTD}"
|
||||
echo -e " - To change virtual console use \033[92mALT + F(1-6)\033[0m" >> "${MOTD}"
|
||||
if echo "${HOOKS[@]}" | grep -q archboot_keymap ; then
|
||||
echo -e "\033[1mChange keymap and console font:\033[0m" >> "${MOTD}"
|
||||
echo -e " - To change to a non-US keymap, type \033[32m'km'\033[0m at the console." >> "${MOTD}"
|
||||
echo -e " - To change to a non-US keymap, type \033[92m'km'\033[0m at the console." >> "${MOTD}"
|
||||
fi
|
||||
if echo "${HOOKS[@]}" | grep -q archboot_tz; then
|
||||
echo -e "\033[1mChange time and date:\033[0m" >> "${MOTD}"
|
||||
echo -e " - To change your time and date, type \033[32m'tz'\033[0m at the console." >> "${MOTD}"
|
||||
echo -e " - To change your time and date, type \033[92m'tz'\033[0m at the console." >> "${MOTD}"
|
||||
fi
|
||||
if echo "${HOOKS[@]}" | grep -q archboot_installer; then
|
||||
#shellcheck disable=SC2129
|
||||
echo -e "\033[1mNormal Setup:\033[0m" >> "${MOTD}"
|
||||
echo -e " - On first login \033[1msetup\033[0m is launched automatically." >> "${MOTD}"
|
||||
echo -e " - Please run \033[32m'setup'\033[0m again to install Arch Linux if you left setup." >> "${MOTD}"
|
||||
echo -e " - Virtual console 7 is used for setup logging, use \033[32mALT + F7\033[0m." >> "${MOTD}"
|
||||
echo -e " - Run \033[32m'update-installer.sh'\033[0m to get all update options of the installer." >> "${MOTD}"
|
||||
echo -e " - Please run \033[92m'setup'\033[0m again to install Arch Linux if you left setup." >> "${MOTD}"
|
||||
echo -e " - Virtual console 7 is used for setup logging, use \033[92mALT + F7\033[0m." >> "${MOTD}"
|
||||
echo -e " - Run \033[92m'update-installer.sh'\033[0m to get all update options of the installer." >> "${MOTD}"
|
||||
echo -e "\033[1mFor Experts:\033[0m" >> "${MOTD}"
|
||||
echo -e " - Use \033[32m'quickinst'\033[0m to install and bypass the setup routine." >> "${MOTD}"
|
||||
echo -e " - Use \033[92m'quickinst'\033[0m to install and bypass the setup routine." >> "${MOTD}"
|
||||
fi
|
||||
chmod 644 "${MOTD}"
|
||||
add_file "${MOTD}" "/etc/motd"
|
||||
|
|
|
@ -2,19 +2,19 @@
|
|||
[[ -z $TTY ]] && TTY=$(tty)
|
||||
TTY=${TTY#/dev/}
|
||||
cd /
|
||||
echo "Welcome to Arch Linux (archboot environment):"
|
||||
echo "--------------------------------------------------------------------"
|
||||
echo "Go and get a cup of coffee. Depending on your setup"
|
||||
echo "you can start in 5 minutes with your tasks..."
|
||||
echo -e "\033[1mWelcome to \033[36mArch Linux \033[34m(archboot environment)\033[0m"
|
||||
echo -e "\033[1m--------------------------------------------------------------------\033[0m"
|
||||
echo -e "\033[93mGo and get a cup of coffee. Depending on your setup\033[0m"
|
||||
echo -e "\033[93myou can start in 5 minutes with your tasks...\033[0m"
|
||||
echo ""
|
||||
if [[ "${TTY}" == "tty1" ]]; then
|
||||
echo "10 seconds time to hit CTRL-C to stop the process now..."
|
||||
echo -e "\033[91m10 seconds\033[0;25m time to hit \033[92mCTRL-C\033[0m to \033[91mstop\033[0m the process \033[1mnow...\033[0m"
|
||||
sleep 10
|
||||
echo "Starting assembling of archboot environment with package cache..."
|
||||
echo -e "\033[1mStarting\033[0m assembling of archboot environment with package cache..."
|
||||
echo ""
|
||||
echo "Running now: update-installer.sh -latest-install"
|
||||
echo -e "\033[1mRunning now:\033[0m \033[92mupdate-installer.sh -latest-install\033[0m"
|
||||
update-installer.sh -latest-install | tee -a /dev/ttyS0
|
||||
elif [[ "${TTY}" == "ttyS0" ]]; then
|
||||
echo "Running update-installer.sh -latest-install on tty1, please wait ..."
|
||||
echo "Progress is shown here ..."
|
||||
echo -e "\033[1mRunning\033[0m \033[92mupdate-installer.sh -latest-install\033[0m on \033[1mtty1\033[0m, please wait ...\033[0m"
|
||||
echo -e "\033[1mProgress is shown here ...\033[0m"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue