summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-10-08 10:17:49 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-10-08 10:17:49 +0000
commitd2f9f85eaa81898bf03ea58dee0924ba32c3d58b (patch)
tree77c24db6134f798200690edb0716fbfcf96c4330 /perl-install/network/netconnect.pm
parentdb16a2ff7c6a11186bb6fc3c15ba53e5ba3d7c63 (diff)
downloaddrakx-backup-do-not-use-d2f9f85eaa81898bf03ea58dee0924ba32c3d58b.tar
drakx-backup-do-not-use-d2f9f85eaa81898bf03ea58dee0924ba32c3d58b.tar.gz
drakx-backup-do-not-use-d2f9f85eaa81898bf03ea58dee0924ba32c3d58b.tar.bz2
drakx-backup-do-not-use-d2f9f85eaa81898bf03ea58dee0924ba32c3d58b.tar.xz
drakx-backup-do-not-use-d2f9f85eaa81898bf03ea58dee0924ba32c3d58b.zip
start slmodemd when installing it (thus preventing the average user to
have to restart his machine in order to get a working connection)
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 52d585de4..c29cf361c 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -514,7 +514,11 @@ Take a look at http://www.linmodems.org"),
#- we need a better agreement to use list_modules::category2modules('network/slmodem')
member($driver, qw(slamr slusb)) and $type = "slmodem";
if ($type && (my $packages = $in->do_pkgs->check_kernel_module_packages("$type-kernel", if_(! -f $pkgs2path{$type}, $type)))) {
- $in->do_pkgs->install(@$packages);
+ if ($in->do_pkgs->install(@$packages)) {
+ # start slmodemd when installing it (thus preventing the average user to have to restart
+ # his machine in order to get a working connection):
+ system("service slmodemd start") if $::isStandalone && $type eq 'slmodem';
+ }
$modem->{device} = $devices{$type} || '/dev/modem';
return "ppp_provider";
}