From c2c75d5b44a14d904d70b99238f1e041780e3a7b Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 4 Jul 2003 12:59:46 +0000 Subject: [PATCH] Added 'x' option. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@595 e3e1d417-86f3-4887-817a-d78f3d33393f --- zmconfig.pl.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zmconfig.pl.in b/zmconfig.pl.in index d23ade978..47b4b79d5 100755 --- a/zmconfig.pl.in +++ b/zmconfig.pl.in @@ -1062,7 +1062,9 @@ Welcome to the ZoneMinder interactive configuration utility. You will now be prompted to enter information allowing ZoneMinder to be configured for your system. Entering '?' at most prompts will print further information about each option if you are not sure what to put. -You can also type 'q' at any time to exit without saving. +You can also type 'q' at any time to exit without saving or 'x' to +exit with the remaining options set to their previous or default +values. Press enter to continue: " ); my $input = <>; @@ -1122,6 +1124,11 @@ Press enter to continue: " ); } next; } + elsif ( $new_value eq 'x' ) + { + print( "Using existing values for remaining options\n" ); + goto FINISHED; + } elsif ( $new_value eq 'q' ) { print( "Exiting\n" ); @@ -1161,6 +1168,7 @@ Press enter to continue: " ); } } } +FINISHED: saveOptionsToFile(); saveOptionsToDB();