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 ) id 1OipP1-0001Tr-EA for garchives@archives.gentoo.org; Tue, 10 Aug 2010 14:02:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C09FE079F; Tue, 10 Aug 2010 14:01:35 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by pigeon.gentoo.org (Postfix) with ESMTP id 4E1E7E079F for ; Tue, 10 Aug 2010 14:01:35 +0000 (UTC) Received: from localhost (p50833EA1.dip.t-dialin.net [80.131.62.161]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M9L3K-1OduEc2lEU-00C7lU; Tue, 10 Aug 2010 16:01:33 +0200 Date: Tue, 10 Aug 2010 16:01:32 +0200 From: linux@gabriel-striewe.de To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] finding out current softlevel Message-ID: <20100810140131.GA4464@laptop.gs> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20100810144202.GA3540@laptop.gs> <201008101458.53669.wonko@wonkology.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201008101458.53669.wonko@wonkology.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Provags-ID: V02:K0:WLjg84LzPFRMUmb1B/65QNjEpCJbwr7ZCU3J72b+fUx 2KecMFqwLCu1pKpgmgm5Vtz9J80w5z3Eh6LFux0h+MopsmXLfu XEPos+gYRScR0qZs7cSdLsZwQlKoOa3XP2/BJiCugIRBfpIMjQ IshFs/a5/JuaeDMR50wjB0EJFrJ7QzOn1tCOPgEX7IokCs0Tol k6QeegCpvpMjAaySxHnow== X-Archives-Salt: 7789b325-e1a1-4384-88c3-e8961f541992 X-Archives-Hash: abe0411dd62fba4a918b88588aeb69cb > At least you can get the complete kernel line from /proc/cmdline. Strangely, my /proc/cmdline is empty; could I have forgotten some kernel module or option? > If you like, put something like this into your .bashrc: > > # get boot parameters: > SOFTLEVEL=$( < /proc/cmdline ) > # strip from left all up to and including 'softlevel=': > SOFTLEVEL=${SOFTLEVEL##*softlevel=} > # strip from the right all from the first blank on: > SOFTLEVEL=${SOFTLEVEL%% *} # strip all > > Oh, or forget about all this, as I just see that there is the rc-status -r > command. Yes, that works fine, thank you!! > Wonko Gabriel