summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-05-30 11:00:55 +0000
committerOlivier Blin <oblin@mandriva.org>2005-05-30 11:00:55 +0000
commit4b4f9f315bc66a6ba4db04e8cdebcccee398f40b (patch)
tree6e2eff960a52df1081dab419e59565ecbb53c80d /perl-install/network/netconnect.pm
parenta89672a52248dd56ae1f1ba691a1e476820644a6 (diff)
downloaddrakx-backup-do-not-use-4b4f9f315bc66a6ba4db04e8cdebcccee398f40b.tar
drakx-backup-do-not-use-4b4f9f315bc66a6ba4db04e8cdebcccee398f40b.tar.gz
drakx-backup-do-not-use-4b4f9f315bc66a6ba4db04e8cdebcccee398f40b.tar.bz2
drakx-backup-do-not-use-4b4f9f315bc66a6ba4db04e8cdebcccee398f40b.tar.xz
drakx-backup-do-not-use-4b4f9f315bc66a6ba4db04e8cdebcccee398f40b.zip
move netprofile stuff in network::network
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm38
1 files changed, 0 insertions, 38 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index c2c87866f..58f1d502f 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -1524,47 +1524,9 @@ sub main {
}
}
-sub set_profile {
- my ($netcnx) = @_;
- system('/sbin/set-netprofile', $netcnx->{PROFILE});
- log::explanations(qq(Switching to "$netcnx->{PROFILE}" profile));
-}
-
-sub save_profile {
- my ($netcnx) = @_;
- system('/sbin/save-netprofile', $netcnx->{PROFILE});
- log::explanations(qq(Saving "$netcnx->{PROFILE}" profile));
-}
-
-sub del_profile {
- my ($profile) = @_;
- return if !$profile || $profile eq "default";
- rm_rf("$::prefix/etc/netprofile/profiles/$profile");
- log::explanations(qq(Deleting "$profile" profile));
-}
-
-sub add_profile {
- my ($netcnx, $profile) = @_;
- return if !$profile || $profile eq "default" || member($profile, get_profiles());
- system('/sbin/clone-netprofile', $netcnx->{PROFILE}, $profile);
- log::explanations(qq("Creating "$profile" profile));
-}
-
-sub get_profiles() {
- map { if_(m!([^/]*)/$!, $1) } glob("$::prefix/etc/netprofile/profiles/*/");
-}
-
sub read_net_conf {
my ($netcnx, $netc, $intf) = @_;
- my $current = { getVarsFromSh("$::prefix/etc/netprofile/current") };
-
- $netcnx->{PROFILE} = $current->{PROFILE} || 'default';
network::network::read_all_conf($::prefix, $netc, $intf, $netcnx);
-
- foreach ('NET_DEVICE', 'NET_INTERFACE') {
- $netc->{$_} = $netcnx->{$_} if $netcnx->{$_};
- }
- $netcnx->{$netcnx->{type}} ||= {} if $netcnx->{type};
}
sub start_internet {