2023-11-10 21:12:15 +00:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Install tty login and issue
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
|
|
|
if [ $disman == 1 ]; then
|
2023-11-17 12:48:02 +00:00
|
|
|
echo -e "${GREEN}"
|
2023-11-10 21:12:15 +00:00
|
|
|
cat <<"EOF"
|
|
|
|
_____ _______ __ _ _
|
|
|
|
|_ _|_ _\ \ / / | | ___ __ _(_)_ __
|
|
|
|
| | | | \ V / | |/ _ \ / _` | | '_ \
|
|
|
|
| | | | | | | | (_) | (_| | | | | |
|
|
|
|
|_| |_| |_| |_|\___/ \__, |_|_| |_|
|
|
|
|
|___/
|
|
|
|
|
|
|
|
EOF
|
2023-11-17 12:48:02 +00:00
|
|
|
echo -e "${NONE}"
|
2023-11-10 21:12:15 +00:00
|
|
|
while true; do
|
|
|
|
read -p "Do you want to install the custom tty login issue (Yy/Nn): " yn
|
|
|
|
case $yn in
|
|
|
|
[Yy]* )
|
|
|
|
sudo cp login/issue /etc/issue
|
|
|
|
break;;
|
|
|
|
[Nn]* )
|
|
|
|
echo "Setup tty login skipped."
|
|
|
|
break;;
|
|
|
|
* ) echo "Please answer yes or no.";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
echo ""
|
|
|
|
fi
|