Make sure the greeting for configure stormux only appears on the tty where it spawns.

This commit is contained in:
Storm Dragon 2024-02-16 02:54:54 -05:00
parent 2af9365e22
commit cdfd1d31a2
1 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,18 @@
#!/usr/bin/env bash
if [[ "$(tty)" = "/dev/tty1" ]]; then
configure-stormux
rm /etc/profile.d/stormux_first_boot.sh
cat << "EOF"
Hello, and welcome to Stormux!
Let's get you set up. After you press enter, you will be prompted for the sudo password.
When that happens, type the word stormux and press enter.
You will not receive any speech feedback for this process.
That is completely normal, and speech will return after you have typed the password.
Once again, the password is stormux in all lower case letters.
Please press enter to continue.
EOF
read -r
sudo configure-stormux
sudo rm -- "$0"
fi