diff --git a/pi4/files/usr/local/bin/configure-stormux b/pi4/files/usr/local/bin/configure-stormux index 863eed9..a977952 100755 --- a/pi4/files/usr/local/bin/configure-stormux +++ b/pi4/files/usr/local/bin/configure-stormux @@ -7,7 +7,16 @@ if [[ -x /etc/audibleprompt.sh ]]; then export sudoFlags=("-A") fi -trap 'popd &> /dev/null' EXIT +trap cleanup EXIT +cleanup() { + popd &> /dev/null + if ! [[ -x /opt/configure-stormux/configure-stormux.sh ]]; then + echo "Initial setup is not complete." + echo "To continue setup, please run:" + echo "sudo configure-stormux" + fi +} + if [[ -x /opt/configure-stormux/configure-stormux.sh ]]; then pushd /opt/configure-stormux