LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2005, 06:04 PM   #1
drache777
Member
 
Registered: Jan 2005
Distribution: Slackware 11.0
Posts: 40

Rep: Reputation: 15
Adding dhcpcd to startup?


Alright guys, I took the advice and made the switch, I'm a proud and happy Slackware 10.0 user! I've compiled things and been satisfied that I don't go through "dependency hell"/"Configure hell" every time I try to compile something. Moreover, let's get to the point.
At first, Slackware knew I had this neat little wireless card, but didn't know how to use it right, so I looked it up, got ndiswrapper to work and all.
However, now everytime I boot up, I have to enter the terminal and key "dhcpd eth2". I wanted to know how to add this to the startup, or kernel, or whatever I'm supposed to do.
(Wireless card isn't the best. Dlink-520 DWL)

Thanks guys!
 
Old 01-18-2005, 07:11 PM   #2
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Use your favorite editor to edit /etc/rc.d/rc.local and add the line you want to run to the end.
 
Old 01-18-2005, 07:57 PM   #3
drache777
Member
 
Registered: Jan 2005
Distribution: Slackware 11.0
Posts: 40

Original Poster
Rep: Reputation: 15
How exactly would that look when adding it into the file? Here's how I did it:
Quote:
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
dhcpcd eth2
?
 
Old 01-18-2005, 08:33 PM   #4
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
That should be fine. Restart your computer and see if it works. =)
 
Old 01-18-2005, 09:35 PM   #5
drache777
Member
 
Registered: Jan 2005
Distribution: Slackware 11.0
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks! Worked beautifully!
 
Old 01-18-2005, 09:42 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by zhangmaike
That should be fine. Restart your computer and see if it works. =)
Tsk tsk tsk ... still that windows mentality ;)

Running the script manually would have shown
whether it works. Alternatively a
init 1
followed by an
init 3
(4, or whatever ones default runlevel is) would
have done the trick :)


Cheers,
Tink
 
Old 01-18-2005, 09:44 PM   #7
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Bah! I've been windows free for years!

But, sure... I guess techincally init 3 would do the trick. =P

lol.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
k(g)dm won't start when dhcpcd happens during startup ricalicious Linux - Software 0 01-28-2005 12:02 AM
dhcpcd not adding default route cpsully69 Linux - Networking 2 09-07-2004 10:09 PM
dhcpcd blocks kde-startup glamdring Linux - Newbie 2 10-23-2003 04:08 PM
Dhcpcd at startup dr_van_nostrand Linux - Networking 4 04-15-2003 11:40 AM
startup script ethnet ---- dhcpcd DavidPhillips Linux From Scratch 4 02-10-2002 11:24 PM


All times are GMT -5. The time now is 07:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration