add ttyAMA0 to logging

This commit is contained in:
Tobias Powalowski 2022-04-27 10:53:43 +02:00
parent f135e67ccb
commit 044fd2c605

View file

@ -22,8 +22,8 @@ else
echo -e "\033[1mStarting\033[0m assembling of archboot environment with package cache ..."
echo ""
echo -e "\033[1mRunning now:\033[0m \033[92mupdate-installer.sh -latest-install\033[0m"
update-installer.sh -latest-install | tee -a /dev/ttyS0 2>/dev/null
elif [[ "${TTY}" == "ttyS0" ]]; then
update-installer.sh -latest-install | tee -a /dev/ttyS0 /dev/ttyAMA0 2>/dev/null
elif [[ "${TTY}" == "ttyS0" || "${TTY}" == "ttyAMA0" ]]; then
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