summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm13
1 files changed, 8 insertions, 5 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 639e1ab6f..14f30a45f 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -277,16 +277,19 @@ fi
sub save_conf {
my ($netcnx) = @_;
my $string = "# Connection type reminder
-type=$netcnx->{type}
+name=$netcnx->{PROFILE}
";
output_with_perm("$prefix/etc/sysconfig/drakconnect", 0600, $string);
}
sub set_profile {
- my ($netcnx, $profile) = @_;
- $netcnx->{PROFILE} = $profile;
+ my ($netcnx) = @_;
system("/sbin/set-netprofile $netcnx->{PROFILE}");
+}
+sub save_profile {
+ my ($netcnx) = @_;
+ system("/sbin/save-netprofile $netcnx->{PROFILE}");
}
sub del_profile {
@@ -307,9 +310,9 @@ sub get_profiles() {
sub load_conf {
my ($netcnx, $netc, $intf) = @_;
- my $type = { getVarsFromSh("$prefix/etc/sysconfig/drakconnect") };
+ my $profile = { getVarsFromSh("$prefix/etc/sysconfig/drakconnect") };
- $type->{type} and $netcnx->{type} = $type->{type};
+ $netcnx->{PROFILE} = $profile->{name};
network::read_all_conf($prefix, $netc, $intf);
}