From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-124046-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QUj7Z-0001tK-Kp
	for garchives@archives.gentoo.org; Thu, 09 Jun 2011 17:34:17 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 88BD91C017;
	Thu,  9 Jun 2011 17:32:56 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 4887A1C017
	for <gentoo-user@lists.gentoo.org>; Thu,  9 Jun 2011 17:32:56 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id A8C101B401A
	for <gentoo-user@lists.gentoo.org>; Thu,  9 Jun 2011 17:32:55 +0000 (UTC)
X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org
X-Spam-Score: -4.873
X-Spam-Level: 
X-Spam-Status: No, score=-4.873 required=5.5 tests=[AWL=1.726,
	BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from smtp.gentoo.org ([127.0.0.1])
	by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id QyU29Jlh0Dml for <gentoo-user@lists.gentoo.org>;
	Thu,  9 Jun 2011 17:32:49 +0000 (UTC)
Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])
	by smtp.gentoo.org (Postfix) with ESMTP id 04B892AC004
	for <gentoo-user@gentoo.org>; Thu,  9 Jun 2011 17:32:47 +0000 (UTC)
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <lnx-gentoo-user@m.gmane.org>)
	id 1QUj63-0004VO-4s
	for gentoo-user@gentoo.org; Thu, 09 Jun 2011 19:32:43 +0200
Received: from athedsl-393739.home.otenet.gr ([79.131.90.9])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-user@gentoo.org>; Thu, 09 Jun 2011 19:32:43 +0200
Received: from realnc by athedsl-393739.home.otenet.gr with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-user@gentoo.org>; Thu, 09 Jun 2011 19:32:43 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: gentoo-user@lists.gentoo.org
From: Nikos Chantziaras <realnc@arcor.de>
Subject: [gentoo-user] Re: Kernel Modules
Date: Thu, 09 Jun 2011 20:32:51 +0300
Organization: Lucas Barks
Message-ID: <isr03f$uit$1@dough.gmane.org>
References: <4DF0A5FA.1020602@gmail.com> <201106091306.16707.alan.mckinnon@gmail.com> <4DF0B893.6010303@gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@dough.gmane.org
X-Gmane-NNTP-Posting-Host: athedsl-393739.home.otenet.gr
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110524 Thunderbird/3.1.10
In-Reply-To: <4DF0B893.6010303@gmail.com>
X-Archives-Salt: 
X-Archives-Hash: 48cbcb989673e61228c814d79511bbc3

On 06/09/2011 03:12 PM, Ignas Anikevicius wrote:
> On 09/06/11 12:06, Alan McKinnon wrote:
>> why you making so much work for yourself?
>>
>> set the /usr/src/linux symlink to each set of installed sources in turn,
>>   run emerge @module-rebuild
>>   or run module-rebuild rebuild
>>
>> you could even script it
>>
>> cd /usr/src
>> for I in linux-*
>> do
>>    ln -sfn $I linux
>>    module-rebuild rebuils
>> done
>>
>> Fixing my bash syntax errors is left as an exercise for the interested reader
> Thanks very much!

You actually don't need to the symlinks yourself.  Try:

   eselect kernel list

Then choose one with something like:

   eselect kernel set 2