finding out current softlevel
On Tue, 10 Aug 2010 16:42:02 +0200, email@example.com 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.
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.