From 0d7f89212f4f839156b58c4f6d0cc8962b85d124 Mon Sep 17 00:00:00 2001 From: damien Date: Thu, 20 Sep 2001 20:33:08 +0000 Subject: test if microcode is there --- perl-install/network/adsl.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm index 4a6e0bd9c..838ef865f 100644 --- a/perl-install/network/adsl.pm +++ b/perl-install/network/adsl.pm @@ -144,7 +144,10 @@ user "$adsl->{login}" require pkgs; $mgmtrpm = pkgs::packageByName($in->{package}, "speedtouch_mgmt"); } - $mgmtrpm ? $in->do_pkgs->install('speedtouch_mgmt') : $in->ask_warn('', _('You need the alcatel microcode. + if($mgmtrpm) { + $in->do_pkgs->install('speedtouch_mgmt') + } else { + -e "$prefix/usr/share/speedtouch/mgmt.o" or $in->ask_warn('', _('You need the alcatel microcode. Download it at http://www.alcatel.com/consumer/dsl/dvrreg_lx.htm and copy the mgmt.o in /usr/share/speedtouch')); -- cgit v1.2.1