Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 08-16-2004, 04:50 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Ethernet detection order - simple solution for slackware 10

I have rtl8139 integrated LAN (uses 8139too), but I usually connect via wireless pcmcia card which works with orinico_cs driver. The problem was that if the system was booted with the wireless card in the slot I used to have eth0 for it and eth1 for the integrated LAN. And oposite: if the system was booted with the wireless card NOT inserted I used to have eth0 for the wired LAN and my connection to the world was eth1 after inserting it. into the slot.
You imagine what happens with configs..
One solution I found was to disable the integrated LAN. So I will always have only one eth# and will be the wireless. It can be achieved with a line like this in /etc/modules.conf:
alias 8139too off

Another way I read in this forum is to blacklist the wired LAN module in /etc/hotplug/blacklist. And probably to modprobe it manually in rc.local after that. Didn't test it.

btw tricks like

alias eth0 8139too
alias eth1 orinoco_cs

just didn't work for me.

Finally I opened /etc/rc.d/rc.M for editing (I boot in runlevel 3) and swaped the pieces of script which run the hotplug system and the pcmcia system. In the original rc script PCMCIA was initialized first and after it - hotplug. Now I have rc.M script in which hotplug is started first and PCMCIA after it. As result, doesn't matter whether the wireless card is inserted or not during boot, my integrated wired LAN is eth0, so my wireless is always eth1.
Now, when I configurate eth1, I know what will happen on next boot


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
Ethernet card detection nouwen Linux - Newbie 7 11-17-2004 04:02 AM
Hardware Detection Order. rridler Linux - Newbie 4 04-27-2004 06:03 PM
Unorthodox solution to video detection Evan P. Linux - Laptop and Netbook 0 09-29-2003 09:52 PM
detection of ethernet adapter sanjiv Linux - Networking 1 09-22-2003 11:28 PM
Ethernet Card Detection LarcTongi Linux - Networking 1 03-20-2001 09:17 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:24 PM.

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