From 16ae09c86df1bec38f437111f9e12b4b9c9e32c5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 5 Mar 2024 19:18:01 -0500 Subject: [PATCH] Fixed bug with configure-stormux stub. --- pi4/files/usr/local/bin/configure-stormux | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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..."