diff --git a/pi4/files/usr/local/bin/configure-stormux b/pi4/files/usr/local/bin/configure-stormux index d7dbc11..dc987f4 100755 --- a/pi4/files/usr/local/bin/configure-stormux +++ b/pi4/files/usr/local/bin/configure-stormux @@ -1,8 +1,14 @@ #!/bin/bash +export SUDO_ASKPASS=/etc/audibleprompt.sh trap 'popd &> /dev/null' EXIT -export SUDO_ASKPASS=/etc/audibleprompt.sh +if [[ -x /opt/configure-stormux/configure-stormux.sh ]]; then + pushd /opt/configure-stormux + ./configure-stormux.sh + exit 0 +fi + if [[ ! -d /opt/configure-stormux ]]; then # Offer to switch fenrir layout. echo "Would you like to switch Fenrir to laptop layout? (y/n)" @@ -48,6 +54,8 @@ echo "If you would like more options, run configure-stormux," echo "or you may configure your system manually." echo echo "Thank you for choosing Stormux." +echo +echo "Removing first run script..."