Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Baselayout2 && /var/lib/init.d

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
bilbotux
n00b
n00b
Posts: 28
Joined: Sun Nov 04, 2007 11:55 am
Location: NewYork, USA

Baselayout2 && /var/lib/init.d

  • Quote

Post by bilbotux » Sat Nov 17, 2007 5:38 pm

Hi,

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}" ]]
to determine the current rc.
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
Top
ABCDwp
Retired Dev
Retired Dev
Posts: 79
Joined: Sun Mar 26, 2006 10:47 am

  • Quote

Post by ABCDwp » Sun Nov 18, 2007 2:04 am

With the most recent Baselayout2, the /var/lib/init.d directory moved to /lib/rc/init.d - but the previous release canidates had it in /lib/rcscripts/init.d, so check both locations - one of them will have what you are looking for (note that this might not be the best way to find out which runlevel you are in, but it does work (for now))
Top
bilbotux
n00b
n00b
Posts: 28
Joined: Sun Nov 04, 2007 11:55 am
Location: NewYork, USA

  • Quote

Post by bilbotux » Sun Nov 18, 2007 11:47 am

ABCDwp wrote:With the most recent Baselayout2, the /var/lib/init.d directory moved to /lib/rc/init.d - but the previous release canidates had it in /lib/rcscripts/init.d, so check both locations - one of them will have what you are looking for (note that this might not be the best way to find out which runlevel you are in, but it does work (for now))
Thanks man, /lib/rc/init.d is what I was looking.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic