From 901d5cdb7a7f545b4e8e94d2c171c4a526acb9e9 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 7 Mar 2024 17:28:29 -0500 Subject: [PATCH] Updated first boot script. --- pi4/files/etc/profile.d/stormux_first_boot.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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