From 449f2abfe1c7931220d79beb4df4b91fcc113637 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 17 Feb 2003 16:00:36 +0000 Subject: fixed command insmod. --- perl-install/commands.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/commands.pm b/perl-install/commands.pm index ab8ab4885..fb5a8ada3 100644 --- a/perl-install/commands.pm +++ b/perl-install/commands.pm @@ -356,7 +356,8 @@ sub insmod { $_ = $1 if m!.*/([^/]*)\.o!; unless (-r ($f = "/lib/modules/$_.o")) { $f = "/tmp/$_.o"; - my $cz = "/lib/modules" . (arch() eq 'sparc64' && "64") . ".cz"; -e $cz or $cz .= "2"; + my $cz = "/lib/modules" . (arch() eq 'sparc64' && "64") . ".cz"; + -e $cz or $cz .= '-'.c::kernel_version(); if (-e $cz) { eval { require packdrake; -- cgit v1.2.1