28 lines
834 B
Bash
28 lines
834 B
Bash
|
# ------------------------------------------------------
|
||
|
# Install tty login and issue
|
||
|
# ------------------------------------------------------
|
||
|
|
||
|
if [ $disman == 1 ]; then
|
||
|
cat <<"EOF"
|
||
|
_____ _______ __ _ _
|
||
|
|_ _|_ _\ \ / / | | ___ __ _(_)_ __
|
||
|
| | | | \ V / | |/ _ \ / _` | | '_ \
|
||
|
| | | | | | | | (_) | (_| | | | | |
|
||
|
|_| |_| |_| |_|\___/ \__, |_|_| |_|
|
||
|
|___/
|
||
|
|
||
|
EOF
|
||
|
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
|