LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help with changing rclocal (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-changing-rclocal-311475/)

truckman 04-09-2005 03:11 PM

help with changing rclocal
 
I finally got my Broadcom wireless card to work on my HP pavilion ze570 laptop after a couple weeks of hacking and tracking! I am using Fedora core 3.

To get everything up and running I have to enter as root the following:

# modprobe ndiswrapper
# dhclient

I added these lines into a script file I called “wireup.” Then I did:
# chmod 755 wireup

I want this to happen at startup, and as far as I can gather, somehow I need to update my rclocal file. Don't know how? Please do not assume I have a clue. Thanks.

Komakino 04-09-2005 03:16 PM

I'm not familiar with the init scripts for FC as I use slack, but somewhere under /etc/rc.d/ there is a file called rc.local. Your best bet would simply be to go to the bottom of that file and add the two lines to that file instead. Use an editor like gedit or kate to edit the lines (as root)

truckman 04-09-2005 03:27 PM

Tried that, but it came up as a read only buffer and would not let me add anything.

Komakino 04-09-2005 03:49 PM

Quote:

Originally posted by truckman
Tried that, but it came up as a read only buffer and would not let me add anything.
As root? The file is probably write-protected, but as root you can change that. In a terminal (xterm, konsole etc) go to where the file is:

cd /path/to/the/file
then
chmod u+w rc.local

edit the file then, as above, only:

chmod u-w rc.local


If you can use vi (or gvim?) then open it using:

gvim /path/to/the/file

press i for insert mode and escape to get out of insert mode, then:
:w!q

will force save and quit (if you do it this way you don't need to do all that chmod stuff above)

truckman 04-10-2005 04:37 PM

Sorry it took so long to try your last suggestion: IT WORKED! Thanks for your help, you saved me a lot of time banging my head against the wall.

Truckman


All times are GMT -5. The time now is 05:07 AM.