From c16da0a31f67eb04d39886c713c5932c8d6acbe5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 22 Jan 2004 14:40:56 +0000 Subject: prefer kernel 2.6 --- kernel/update_kernel | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/update_kernel b/kernel/update_kernel index d705a375e..efa2361b0 100755 --- a/kernel/update_kernel +++ b/kernel/update_kernel @@ -44,7 +44,7 @@ function create_modules() { | perl -ne 's/\.o//g; s/[ \t]+/ /g; print if /: /' > modules.dep else cp $kernel_path/lib/modules/*/modules.dep . - perl -ni -e 's|/\S+/([^/]+)\.k?o|$1|g; print if /: /' modules.dep + perl -ni -e 's|/\S+/([^/]+)\.k?o(\.gz)|$1|g; print if /: /' modules.dep fi perl -pi -e 's/((plip|ppa|imm): parport)/$1 parport_pc/' modules.dep @@ -126,7 +126,8 @@ fi [ -n "$main" -a -e $ALL_KERNELS/$main ] || { cd $ALL_KERNELS - main=$(echo 2.* | sed 's/.* //') + main=$(echo 2.6* | sed 's/.* //') + [ -n "$main" ] || main=$(echo 2.4* | sed 's/.* //') echo "Choosing $main" echo $main > .main cd .. -- cgit v1.2.1