From d7a3790c31033dd49e4e0ddd028e341bf5602139 Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Fri, 9 Aug 2013 12:49:52 -0600 Subject: [PATCH] Add option to use from web, to turn off script mode and revert to normal newnode mode. --- utils/newnode.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/newnode.in b/utils/newnode.in index 22f52fa7f..e57255ecc 100644 --- a/utils/newnode.in +++ b/utils/newnode.in @@ -109,7 +109,7 @@ my $noreboot = 0; my $quiet = 0; my $force_unconnected_interfaces = 0; my %options = (); -if (! getopts("fnq", \%options)) { +if (! getopts("fnqw", \%options)) { usage(); } if ($options{f}) { @@ -121,6 +121,11 @@ if ($options{'n'}) { if ($options{'q'}) { $quiet = 1; } +if ($options{'w'}) { + # See the web page that calls this. From that interface, we + # use the old style newnode. + $useScriptFeature = 0; +} # # We seem to have to do this so that ssh gets proper root permissions to read -- GitLab