LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-05-2006, 01:19 AM   #1
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
slackware network complain. again...


1:In my slackware (aquarius) I don't have rc.netdevice in my /etc/rc.d directory. Slackware book says I should have it. What's wrong?

2:I read somewhere in lq.org forum that slackware 10.2 kernel 2.4.31 has somekind of a latent network problem (bug?) but I forgot what kind of the problem and the title of the thread. Can anyone give more info about this? I use kernel 2.4.31.
 
Old 06-05-2006, 01:35 AM   #2
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
yes the slackbook talks about the 'rc.netdevice' and i too don't have it. but my slackbox network runs fine without it and so i am not complaining.
more about this: i have installed slack 10.2 in 5 different machines in the past and none of them have this file present but all of them run fine. so i guess its just a mistake in part of the book. maybe it was present in 10.1 (i wouldn't know abt it since i began using slack from the current version) but the point is it should not affect your network connectivity if you setup your network card and settings right.
 
Old 06-05-2006, 01:39 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by hottdogg
1:In my slackware (aquarius) I don't have rc.netdevice in my /etc/rc.d directory. Slackware book says I should have it. What's wrong?
Your book. Which version of Slack was that for?

Quote:
Originally Posted by hottdogg
2:I read somewhere in lq.org forum that slackware 10.2 kernel 2.4.31 has somekind of a latent network problem (bug?) but I forgot what kind of the problem and the title of the thread. Can anyone give more info about this? I use kernel 2.4.31.
None that I'm aware of, just use the search. I won't.


Cheers,
Tink
 
Old 06-05-2006, 01:58 AM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,700
Blog Entries: 7

Rep: Reputation: 2792Reputation: 2792Reputation: 2792Reputation: 2792Reputation: 2792Reputation: 2792Reputation: 2792Reputation: 2792Reputation: 2792Reputation: 2792Reputation: 2792
Quote:
Originally Posted by hottdogg
I don't have rc.netdevice in my /etc/rc.d directory.
rc.netdevice is a two line script:

Code:
#!/bin/sh
/sbin/modprobe your_network_card_kernel_module
That's all.

It has been redundant since Slackware started using Linux 2.4 & hotplug, because most NICs are auto-detected by hotplug at bootup.

Older versions of the Slackware setup utility used to create this file for you. I don't know if it still does.

Last edited by rkelsen; 06-05-2006 at 01:59 AM.
 
Old 06-15-2006, 10:44 AM   #5
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Your book. Which version of Slack was that for?
I don't know. I use 10.2. Downloaded the book from slackware.com.
Well, I hope my system fine. Forget my worries!

Tnx.
 
Old 06-15-2006, 10:53 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
The rc.netdevice is only created when during the install you let Slackware search for a network card. If a card is found, Slackware installer will ask if you want a modprobe command for the card's driver written to /etc/rc.d/rc.netdevice .

Eric
 
Old 06-15-2006, 11:01 AM   #7
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
Quote:
Originally Posted by Alien Bob
The rc.netdevice is only created when during the install you let Slackware search for a network card. If a card is found, Slackware installer will ask if you want a modprobe command for the card's driver written to /etc/rc.d/rc.netdevice
so did slackbook forget to talk about it or is it we who just got lazy to not read the whole thing?
 
Old 06-26-2006, 09:34 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by prozac
so did slackbook forget to talk about it or is it we who just got lazy to not read the whole thing?
Eric recently taught me about rc.netdevice in a LQ thread, too.

You'll find it in the new Slackware Linux Essentials in these locations:

4.1.3.1 System Startup
5.2.1 Loading Network Modules
5.2.2 LAN (10/100/1000Base-T and Base-2) cards
 
Old 06-26-2006, 10:36 AM   #9
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I think it has turned into a redundant file, like an appendix. Yeah, it's there, but we don't use it anymore...
 
Old 06-26-2006, 10:55 AM   #10
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
4.1.3.1 System Startup
Loads kernel modules. Things like your network card, PPP support, and other things are loaded here. If this script finds rc.netdevice, it will run that as well.

5.2.1 Loading Network Modules
If you open rc.modules and look for that section, you'll notice that it first checks for an executable rc.netdevice file in /etc/rc.d/. This script is created if setup successfully autoprobes your network device during installation.

5.2.2 LAN (10/100/1000Base-T and Base-2) cards
This heading encompasses all of the internal PCI and ISA networking cards. Drivers for these cards are provided via loadable kernel modules as covered in the previous paragraph. /sbin/netconfig should have probed for your card and successfully set up your rc.netdevice file. If this did not occur, the most likely problem would be that the module that you're attempting to load for a given card is incorrect (it is not unheard of for different generations of the same brand of card from the same manufacturer to require different modules). If you are certain that the module that you're attempting to load is the correct one, your next best bet would be to refer to the documentation for the module in an attempt to discover whether or not specific parameters are required during when the module is initialized.

all my pc's network runs fine. if its an incorrect paramater during module initialization i don't know of it and i didn't manually modprobed the modules, they were auto loaded. I don't know what to say.
 
Old 06-26-2006, 12:00 PM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
No, it's not a redundant file at all. I have it on this box from a NFS install -- my Marvell Gigabit Yukon NIC uses the sk98lin module.

And no, it has nothing to do with an incorrect module parameter.

If your card (as yours and mine obviously are) is found, then the install doesn't probe and no file is created. But if your card is not found, you can probe for the driver. This saves that person from not having network support on the install. I wish it worked back in Slackware-9.1 for my Broadcom Gigabit NIC ... back then I just didn't get on, until I uncommented "tg3" in /etc/rc.d/rc.modules or rebuilt the kernel afterwards.

I see it all the time now that I am doing NFS installs.

Last edited by Bruce Hill; 06-26-2006 at 12:02 PM.
 
Old 06-26-2006, 12:04 PM   #12
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Thank you for clearing that up (I think)

So it is only used (or created)if the normal install does not work?
 
Old 06-26-2006, 12:10 PM   #13
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
Yes, sorta. I thought Alien Bob was clearer. If Slackware does not happen to find your NIC while it's installing, then you can "modprobe" for other NICs. If you know what module your NIC uses, then you can enter it and it will create the rc.netdevice file. This presently happens with nForce chipsets for, I believe, forcedeath (whatever it's called).

It also happens on a NFS install because that's the way NFS installs work ... after logging in as root, you enter "network" before setup, and the network installer probes for NIC modules. So this is another script. I just woke for a nature call and posted ... hope Eric will show up and clear up any entropy ... zzzzzzz
 
Old 06-26-2006, 12:21 PM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Well. I see no reason to repeat myself. Both my post in this thread and prozac's have everything that you need to know about the how and why (and why not) of rc.netdevice.

Eric
 
  


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
So many people complain... purelithium General 25 12-18-2005 10:05 AM
If enough of us complain jon2kx General 6 11-17-2004 08:12 PM
Please complain to the BBC davee General 25 09-23-2004 09:04 PM
Some of you rant and complain about MS BUT... jaz General 15 06-25-2004 04:20 PM
Don't complain about current! tobyl Slackware 5 05-12-2004 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:41 AM.

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
Open Source Consulting | Domain Registration