summaryrefslogtreecommitdiff
path: root/scripts/vpn-config.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vpn-config.pl')
-rwxr-xr-xscripts/vpn-config.pl24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index 0ee4d94..ffb43c2 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -39,14 +39,10 @@ use Getopt::Long;
use Vyatta::Misc;
use NetAddr::IP;
-my $changes_dir;
-my $newconfig_dir;
my $config_file;
my $secrets_file;
my $init_script;
GetOptions(
- "changes_dir=s" => \$changes_dir,
- "newconfig_dir=s" => \$newconfig_dir,
"config_file=s" => \$config_file,
"secrets_file=s" => \$secrets_file,
"init_script=s" => \$init_script
@@ -71,26 +67,6 @@ $genout_secrets .= "# generated by $0\n\n";
use Vyatta::Config;
my $vc = new Vyatta::Config();
my $vcVPN = new Vyatta::Config();
-
-if ( defined($changes_dir) && $changes_dir ne '' ) {
- $vc->{_changes_only_dir_base} = $changes_dir;
- $vcVPN->{_changes_only_dir_base} = $changes_dir;
-}
-if ( defined($newconfig_dir) && $newconfig_dir ne '' ) {
- $vc->{_new_config_dir_base} = $newconfig_dir;
- $vcVPN->{_new_config_dir_base} = $newconfig_dir;
-}
-
-$genout .=
- "# using 'changes only' directory: $vcVPN->{_changes_only_dir_base}\n";
-$genout .=
- "# using 'new config' directory: $vcVPN->{_new_config_dir_base}\n\n";
-
-$genout_secrets .=
- "# using 'changes only' directory: $vcVPN->{_changes_only_dir_base}\n";
-$genout_secrets .=
- "# using 'new config' directory: $vcVPN->{_new_config_dir_base}\n\n";
-
$vcVPN->setLevel('vpn');
if ( $vcVPN->exists('ipsec') ) {