|
@ -1722,32 +1722,39 @@ echo -n ", parsing" |
|
|
parse_config_files $CONFIG_IN |
|
|
parse_config_files $CONFIG_IN |
|
|
|
|
|
|
|
|
echo "done." |
|
|
echo "done." |
|
|
# |
|
|
|
|
|
# Start the ball rolling from the top. |
|
|
|
|
|
# |
|
|
|
|
|
activate_menu MCmenu0 |
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
if [ -z $2 ]; then # Interactive mode |
|
|
# All done! |
|
|
# |
|
|
# |
|
|
# Start the ball rolling from the top. |
|
|
cleanup1 |
|
|
# |
|
|
|
|
|
activate_menu MCmenu0 |
|
|
|
|
|
|
|
|
# |
|
|
# |
|
|
# Confirm and Save |
|
|
# All done! |
|
|
# |
|
|
# |
|
|
if $DIALOG --backtitle "$backtitle" \ |
|
|
cleanup1 |
|
|
--yesno "Do you wish to save your new Borg configuration?" 5 60 |
|
|
|
|
|
then |
|
|
# |
|
|
|
|
|
# Confirm and Save |
|
|
|
|
|
# |
|
|
|
|
|
if $DIALOG --backtitle "$backtitle" \ |
|
|
|
|
|
--yesno "Do you wish to save your new Borg configuration?" 5 60 |
|
|
|
|
|
then |
|
|
|
|
|
save_configuration |
|
|
|
|
|
echo |
|
|
|
|
|
echo |
|
|
|
|
|
echo "*** End of Borg configuration." |
|
|
|
|
|
echo |
|
|
|
|
|
else |
|
|
|
|
|
echo |
|
|
|
|
|
echo |
|
|
|
|
|
echo Your Borg configuration changes were NOT saved. |
|
|
|
|
|
echo |
|
|
|
|
|
fi |
|
|
|
|
|
else # Second argument give; noninteractive! |
|
|
|
|
|
echo "Loading configuration file $2" |
|
|
|
|
|
load_config_file $2 |
|
|
save_configuration |
|
|
save_configuration |
|
|
echo |
|
|
|
|
|
echo |
|
|
|
|
|
echo "*** End of Borg configuration." |
|
|
|
|
|
echo |
|
|
|
|
|
else |
|
|
|
|
|
echo |
|
|
|
|
|
echo |
|
|
|
|
|
echo Your Borg configuration changes were NOT saved. |
|
|
|
|
|
echo |
|
|
|
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# Remove log if empty. |
|
|
# Remove log if empty. |
|
|