Forums

Skip to content

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

Deleting net.eth0 from the default runlevel

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
fangwen
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Sun Oct 23, 2011 1:16 pm
Location: Shanghai, China

Deleting net.eth0 from the default runlevel

  • Quote

Post by fangwen » Thu Nov 24, 2011 5:02 am

I followed the Gentoo docs and run these commands to add net.eth0 to the default runlevel:

Code: Select all

# cd /etc/init.d
# ln -s net.lo net.eth0
# rc-update add net.eth0 default
But now I don't want it to be activated at boot. I know I can run

Code: Select all

# rc-update delete net.eth0 default
to delete it from the default runlevel. But how can I remove the symlink, or do I have to remove it?

Also, how can I activate my network interface when needed?
All operating systems suck. This one just sucks less.
Top
idiway
n00b
n00b
User avatar
Posts: 10
Joined: Wed Nov 23, 2011 2:25 pm
Location: France

  • Quote

Post by idiway » Thu Nov 24, 2011 5:45 am

To my minds, it depends if you have openrc.

If you don't have it, you can manage with rc-update as you said.
But if you have it, I think http://www.gentoo.org/doc/en/openrc-migration.xm could help you.
Stéphane, iDIWAY.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Thu Nov 24, 2011 5:48 am

Code: Select all

rm /etc/init.d/net.eth0
removes the symlink

remake the symlink then

Code: Select all

/etc/init.d/net.eth0 start
Defund the FCC.
Top
solamour
l33t
l33t
User avatar
Posts: 749
Joined: Tue Dec 21, 2004 11:29 pm
Location: San Diego, CA

  • Quote

Post by solamour » Thu Nov 24, 2011 7:58 am

If you don't want eth0 to start during boot-up, just add the following.

Code: Select all

rc_hotplug="!net.eth0"
__
sol
Top
fangwen
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Sun Oct 23, 2011 1:16 pm
Location: Shanghai, China

  • Quote

Post by fangwen » Thu Nov 24, 2011 9:07 am

Thank you.
All operating systems suck. This one just sucks less.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

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