summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-image-tools.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-image-tools.pl b/scripts/vyatta-image-tools.pl
index 3a9bf08..fc8bfc8 100755
--- a/scripts/vyatta-image-tools.pl
+++ b/scripts/vyatta-image-tools.pl
@@ -202,6 +202,10 @@ sub curl_from {
sub y_or_n {
my ($msg) = @_;
+ my $process_client = $ENV{'VYATTA_PROCESS_CLIENT'};
+ if (defined $process_client){
+ return 1 if ($process_client =~ /gui2_rest/);
+ }
print "$msg (Y/N): ";
my $input = <>;
return 1 if ($input =~ /Y|y/);