hyprland-dotfiles/.install/issue.sh

25 lines
784 B
Bash
Raw Normal View History

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-20 21:11:39 +00:00
if gum confirm "Do you want to install the custom tty login issue?" ;then
sudo cp login/issue /etc/issue
2023-11-25 16:46:54 +00:00
echo "Custom tty login issue installed successfully."
2023-11-21 20:19:51 +00:00
elif [ $? -eq 130 ]; then
exit 130
2023-11-20 21:11:39 +00:00
else
echo "Setup tty login skipped."
fi
2023-11-10 21:12:15 +00:00
echo ""
fi