From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GbipC-00073r-Jo for garchives@archives.gentoo.org; Sun, 22 Oct 2006 19:17:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9MJD7Sg006750; Sun, 22 Oct 2006 19:13:07 GMT Received: from ender.volumehost.net (adsl-69-154-123-202.dsl.fyvlar.swbell.net [69.154.123.202]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9MJ8aCn015038 for ; Sun, 22 Oct 2006 19:08:36 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id E7169D678 for ; Sun, 22 Oct 2006 19:08:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at volumehost.net Received: from ender.volumehost.net ([127.0.0.1]) by localhost (ender.volumehost.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BHE8nhPsA27q for ; Sun, 22 Oct 2006 19:08:34 +0000 (UTC) Received: from adsl-69-154-123-205.dsl.fyvlar.swbell.net (adsl-69-154-123-205.dsl.fyvlar.swbell.net [69.154.123.205]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ender.volumehost.net (Postfix) with ESMTP id 83513D725 for ; Sun, 22 Oct 2006 19:08:34 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] asterisk zaptel-1.2.9.1 error Date: Sun, 22 Oct 2006 14:08:30 -0500 User-Agent: KMail/1.9.5 References: <281497B9488F3343BEF0C012174870996A3AB6@MAIL01.ttt.co.th> <42c4f5b20610220947w7aadb95fw762e3b0b1fcb857@mail.gmail.com> In-Reply-To: <42c4f5b20610220947w7aadb95fw762e3b0b1fcb857@mail.gmail.com> X-Eric-Conspiracy: There is no conspiracy Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2290675.kgJhbY4lJd"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200610221408.34650.bss03@volumehost.net> X-Archives-Salt: cf6dbdd2-1a05-480f-8890-3c93fc62193b X-Archives-Hash: 437590fb36fe80ff13e56f310286a3b4 --nextPart2290675.kgJhbY4lJd Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 22 October 2006 11:47, "R=C3=A9gis D=C3=A9camps" wrote=20 about 'Re: [gentoo-user] asterisk zaptel-1.2.9.1 error': > > * Could not find a usable .config in the kernel source directory. > > * Please ensure that /usr/src/linux points to a configured set of > > Linux sources. > You should hava a backup of your linux-kernel configuration in /boot. > use ls -al /usr/src/linux to check that the version of the kernel > source is the same than the kernel image you use. In which case you > can: > ln -s /boot/Config- /usr/src/linux/.config Try the script below instead, it might not fix everything, but it's less=20 hit-and-miss than manually searching for a configuration backup that you=20 may not even have. #!/bin/bash if [ -h /usr/src/linux ]; then echo 'You have a /usr/src/linux symlink, good.' if [ "$(readlink /usr/src/linux)" =3D=3D "linux-$(uname -r)" ]; then echo 'It points to your running kernel, also good.' else echo "But, it points to the wrong place. I'll fix it." ln -snf "linux-$(uname -r)" /usr/src/linux || exit 127 fi elif [ -e /usr/src/linux ]; then echo 'You have a /usr/src/linux, but it is not a symlink.' echo "Your system is broken, but I can't automatically fix it." exit 1 else echo "You don't have a /usr/src/linux, let me make one for you." ln -snf "linux-$(uname -r)" /usr/src/linux || exit 127 fi if [ -r /proc/config.gz ]; then echo 'You have a /proc/config.gz, good.' else echo "You either don't have a /proc/config.gz or I can't read it." echo "Sorry, I can't access the configuration of your running kernel." exit 1 fi if [ -r /usr/src/linux/.config ]; then echo 'You already have a readable /usr/src/linux/.config, hrm.' elif [ -e /usr/src/linux/.config ]; then echo "Your /usr/src/linux/.config exists, but I can't read it." echo "There's probably a permissions problem somewhere." exit 1 else echo 'No /usr/src/linux/.config, using running config.' zcat /proc/config.gz > /usr/src/linux/.config || exit 127 exit 0 fi if zcat /proc/config.gz | diff /usr/src/linux/.config - ; then echo 'Your /usr/src/linux/.config and your running configuration agree.' echo "I can't believe you wasted my CPU cycles. ;)" exit 0 else echo -n 'Your /usr/src/linux/.config and your running configuration ' echo -n 'are different. You should build and install, as needed, this ' echo -n 'new configuration. After doing so, you should be able to ' echo -n 'compile out-of-tree modules, but they will not be usable until ' echo 'you boot into the newly configured kernel.' exit 1 fi =2D-=20 "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." =2D- Gentoo Developer Ciaran McCreesh --nextPart2290675.kgJhbY4lJd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFO8Gyq72nDbhDXToRAvpWAKCjZ8E6RyapxJdhksEaQYZ2hdUQwgCfb6/O 8rcL0WchDcLPisWywPYLvL4= =mt49 -----END PGP SIGNATURE----- --nextPart2290675.kgJhbY4lJd-- -- gentoo-user@gentoo.org mailing list