Updated first boot script.

This commit is contained in:
Storm Dragon 2024-03-07 17:28:29 -05:00
parent 16ae09c86d
commit 901d5cdb7a

View File

@ -1,5 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ -x /opt/configure-stormux/configure-stormux.sh ]]; then
exit 0
fi
if ! [[ -x /opt/configure-stormux/configure-stormux.sh ]]; then
exit 0
fi
if [[ "$(tty)" = "/dev/tty1" ]]; then if [[ "$(tty)" = "/dev/tty1" ]]; then
cat << "EOF" cat << "EOF"
Hello, and welcome to Stormux! Hello, and welcome to Stormux!
@ -14,5 +22,4 @@ Please press enter to continue.
EOF EOF
read -r read -r
sudo configure-stormux sudo configure-stormux
sudo rm -- "/etc/profile.d/stormux_first_boot.sh"
fi fi