my $debconf_owner = 'openflow-switch';
my $default = '/etc/default/openflow-switch';
+my $template = '/usr/share/openflow/switch/default.template';
my $etc = '/etc/openflow-switch';
my $rundir = '/var/run';
my $privkey_file = "$etc/of0-privkey.pem";
local $_ = $oldconfig{$key};
&{$map{$key}}() if defined && !/^\s*$/;
}
+} elsif (-e $template) {
+ %oldconfig = load_config($template);
}
my $cacert_preverified = -e $cacert_file;