diff --git a/src/freedombone b/src/freedombone index 1b34f5f7..eb1cec79 100755 --- a/src/freedombone +++ b/src/freedombone @@ -83,7 +83,20 @@ if [[ $command_options == "menuconfig" ]]; then rm $COMPLETION_FILE fi fi + + # clear the interactive file which indicates configuration success + interactive_file=$HOME/.${PROJECT_NAME}-interactive + if [ -f $interactive_file ]; then + rm $interactive_file + fi + interactive_configuration + + # check that the interactive file was created + if [ ! -f $interactive_file ]; then + exit 6393562 + fi + rm $interactive_file else while [[ $# > 1 ]] do diff --git a/src/freedombone-config b/src/freedombone-config index 25823433..745b1228 100755 --- a/src/freedombone-config +++ b/src/freedombone-config @@ -1362,6 +1362,9 @@ function interactive_config { if [ -f temp.cfg ]; then shred -zu temp.cfg fi + + # This file indicates that the configuration happened successfully + touch $HOME/.${PROJECT_NAME}-interactive } function show_result {