summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakconnect
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-06-06 05:54:58 +0000
committerOlivier Blin <oblin@mandriva.org>2005-06-06 05:54:58 +0000
commit0704df229e24c4ace404399bbaf08d6b791d8da8 (patch)
treefe62d1f450b9bea1d6bed9341b88107c90ef5b43 /perl-install/standalone/drakconnect
parenta899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e (diff)
downloaddrakx-0704df229e24c4ace404399bbaf08d6b791d8da8.tar
drakx-0704df229e24c4ace404399bbaf08d6b791d8da8.tar.gz
drakx-0704df229e24c4ace404399bbaf08d6b791d8da8.tar.bz2
drakx-0704df229e24c4ace404399bbaf08d6b791d8da8.tar.xz
drakx-0704df229e24c4ace404399bbaf08d6b791d8da8.zip
simplify apply() since sethostname() is done by configure_network()
Diffstat (limited to 'perl-install/standalone/drakconnect')
-rwxr-xr-xperl-install/standalone/drakconnect7
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index 3c2305b7d..7528675fe 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -644,7 +644,7 @@ sub save {
gtkflush();
foreach (keys %$p) {
save_notebook($p->{$_}{intf}, $p->{$_}{gui}) or return;
- $p->{$_}{intf}{save} ? $p->{$_}{intf}{save}->() : apply($p->{$_}{intf});
+ $p->{$_}{intf}{save} ? $p->{$_}{intf}{save}->() : apply();
}
system("/etc/rc.d/init.d/network restart");
$dialog->response(0);
@@ -786,10 +786,7 @@ sub update_list {
}
}
-sub apply {
- my ($intf) = @_;
- my $dyn = $intf->{BOOTPROTO} ne 'static';
- network::network::sethostname($net) if $dyn;
+sub apply() {
network::network::configure_network($net, $in, $modules_conf);
}