LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding dhcpcd to startup? (https://www.linuxquestions.org/questions/linux-newbie-8/adding-dhcpcd-to-startup-279455/)

drache777 01-18-2005 05:04 PM

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!

zhangmaike 01-18-2005 06:11 PM

Use your favorite editor to edit /etc/rc.d/rc.local and add the line you want to run to the end.

drache777 01-18-2005 06:57 PM

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
?

zhangmaike 01-18-2005 07:33 PM

That should be fine. Restart your computer and see if it works. =)

drache777 01-18-2005 08:35 PM

Thanks! Worked beautifully!

Tinkster 01-18-2005 08:42 PM

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

zhangmaike 01-18-2005 08:44 PM

Bah! I've been windows free for years! ;)

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

lol.


All times are GMT -5. The time now is 11:58 PM.