public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] finding out current softlevel
Date: Tue, 10 Aug 2010 14:24:43 +0100	[thread overview]
Message-ID: <20100810142443.1888b98c@zaphod.digimed.co.uk> (raw)
In-Reply-To: <20100810144202.GA3540@laptop.gs>

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

On Tue, 10 Aug 2010 16:42:02 +0200, linux@gabriel-striewe.de wrote:

> I was wondering whether there is some way to find out the current
> running softlevel (which I gave to the kernel line in grub's
> menu.lst), for example to start another window manager depending on
> the softlevel or whatever other possible solutions? Maybe in a
> variable like $SOFTLEVEL ? 

The arguments you gave to the kernel when booting are in /proc/cmdline,
but that may not be the current softlevel, it may have been changed since
booting. With baselayout-1, the current softlevel is
in /var/lib/init.d/softlevel. There may be a similar file for
baselayout-2 but I haven't had the need to find it yet.


-- 
Neil Bothwick

Q. How many mathematicians does it take to change a light bulb?
A. Only one - who gives it to six Californians, thereby reducing the
problem to an earlier joke.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2010-08-10 13:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-10 14:42 [gentoo-user] finding out current softlevel linux
2010-08-10 12:58 ` Alex Schuster
2010-08-10 14:01   ` linux
2010-08-10 13:24 ` Neil Bothwick [this message]
2010-08-10 13:27 ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100810142443.1888b98c@zaphod.digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox