[gentoo-user] finding out current softlevel

2010-08-10 Thread linux
Hello, 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 ?

Re: [gentoo-user] finding out current softlevel

2010-08-10 Thread Alex Schuster
li...@gabriel-striewe.de writes: 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

Re: [gentoo-user] finding out current softlevel

2010-08-10 Thread Neil Bothwick
On Tue, 10 Aug 2010 16:42:02 +0200, li...@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

Re: [gentoo-user] finding out current softlevel

2010-08-10 Thread linux
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

Re: [gentoo-user] finding out current softlevel

2010-08-10 Thread Neil Bothwick
The baselayout-2 method is rc-status --runlevel -- Neil Bothwick And on the seventh day God said :wq and then make signature.asc Description: PGP signature