diff --git a/pi4/files/etc/profile.d/stormux_first_boot.sh b/pi4/files/etc/profile.d/stormux_first_boot.sh index e36bc07..4d78372 100755 --- a/pi4/files/etc/profile.d/stormux_first_boot.sh +++ b/pi4/files/etc/profile.d/stormux_first_boot.sh @@ -1,5 +1,13 @@ #!/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 cat << "EOF" Hello, and welcome to Stormux! @@ -14,5 +22,4 @@ Please press enter to continue. EOF read -r sudo configure-stormux - sudo rm -- "/etc/profile.d/stormux_first_boot.sh" fi