Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-05-2006, 01:19 AM
|
#1
|
Member
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222
Rep:
|
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.
|
|
|
06-05-2006, 01:35 AM
|
#2
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
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.
|
|
|
06-05-2006, 01:39 AM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
06-05-2006, 01:58 AM
|
#4
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,700
|
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.
|
|
|
06-15-2006, 10:44 AM
|
#5
|
Member
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222
Original Poster
Rep:
|
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.
|
|
|
06-15-2006, 10:53 AM
|
#6
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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
|
|
|
06-15-2006, 11:01 AM
|
#7
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
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?
|
|
|
06-26-2006, 09:34 AM
|
#8
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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
|
|
|
06-26-2006, 10:36 AM
|
#9
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
I think it has turned into a redundant file, like an appendix. Yeah, it's there, but we don't use it anymore...
|
|
|
06-26-2006, 10:55 AM
|
#10
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
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.
|
|
|
06-26-2006, 12:00 PM
|
#11
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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.
|
|
|
06-26-2006, 12:04 PM
|
#12
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Thank you for clearing that up (I think)
So it is only used (or created)if the normal install does not work?
|
|
|
06-26-2006, 12:10 PM
|
#13
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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
|
|
|
06-26-2006, 12:21 PM
|
#14
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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
|
|
|
All times are GMT -5. The time now is 12:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|