I'm trying to follow this power management guide: http://www.gentoo.org/doc/en/power-management-guide.xml, but there is a problem:
On the Code Listing 2.5, it's using:
Code: Select all
if [[ "$(</var/lib/init.d/softlevel)" != "${RUNLEVEL_AC}" ]]However, on my computer, I do not have any /var/lib/init.d folder. I guess it's because I'm using baselayout2.
So the question is:
how can I achieve the same thing (ie know which runlevel is active) on a baselayout2 system ?
Thanks

