reset option

This commit is contained in:
Bob Mottram 2016-10-15 16:33:13 +01:00
parent 9188a52cbf
commit d20c032518
1 changed files with 16 additions and 0 deletions

View File

@ -67,6 +67,13 @@ if [[ $command_options == "menuconfig-onion" ]]; then
command_options="menuconfig"
fi
if [ ! $CONFIGURATION_FILE ]; then
CONFIGURATION_FILE=$HOME/${PROJECT_NAME}.cfg
fi
if [ ! $COMPLETION_FILE ]; then
COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
fi
if [[ $command_options == "menuconfig" ]]; then
interactive_configuration
else
@ -214,6 +221,15 @@ else
shift
DEBIAN_REPO=$1
;;
# clear the config file
--reset)
if [ -f $CONFIGURATION_FILE ]; then
rm $CONFIGURATION_FILE
fi
if [ -f $COMPLETION_FILE ]; then
rm $COMPLETION_FILE
fi
;;
# minimal install
--minimal)
shift