2023-11-10 16:12:15 -05:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Install tty login and issue
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
|
|
|
if [ $disman == 1 ]; then
|
2023-11-17 07:48:02 -05:00
|
|
|
echo -e "${GREEN}"
|
2023-11-10 16:12:15 -05:00
|
|
|
cat <<"EOF"
|
|
|
|
_____ _______ __ _ _
|
|
|
|
|_ _|_ _\ \ / / | | ___ __ _(_)_ __
|
|
|
|
| | | | \ V / | |/ _ \ / _` | | '_ \
|
|
|
|
| | | | | | | | (_) | (_| | | | | |
|
|
|
|
|_| |_| |_| |_|\___/ \__, |_|_| |_|
|
|
|
|
|___/
|
|
|
|
|
|
|
|
EOF
|
2023-11-17 07:48:02 -05:00
|
|
|
echo -e "${NONE}"
|
2023-11-20 16:11:39 -05:00
|
|
|
if gum confirm "Do you want to install the custom tty login issue?" ;then
|
|
|
|
sudo cp login/issue /etc/issue
|
2023-11-25 11:46:54 -05:00
|
|
|
echo "Custom tty login issue installed successfully."
|
2023-11-21 15:19:51 -05:00
|
|
|
elif [ $? -eq 130 ]; then
|
|
|
|
exit 130
|
2023-11-20 16:11:39 -05:00
|
|
|
else
|
|
|
|
echo "Setup tty login skipped."
|
|
|
|
fi
|
2023-11-10 16:12:15 -05:00
|
|
|
echo ""
|
|
|
|
fi
|