LinuxQuestions.org
Help answer threads with 0 replies.
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 03-26-2006, 07:27 AM   #1
dont_stop_me
Member
 
Registered: Sep 2005
Location: Romania
Distribution: Slackware 12
Posts: 42

Rep: Reputation: 15
Question I don't want to write modprobe sk98lin into console for the network to work


Hi, I have Marvel Yukon Ethernet adapter, if I modprobe it, then it works:
Code:
modprobe sk98lin
I dont want to do it all the time.
I would like to know what to write in the /etc/modules.conf or /etc/modprobe.conf files.
 
Old 03-26-2006, 07:50 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
You can either put the name of the module in /etc/rc.d/rc.modules, or write the same command (/sbin/modprobe sk98lin) in /etc/rc.d/rc.local, to load the module at startup
 
Old 03-26-2006, 10:34 AM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
rc.modules is where it's supposed to go. If you put it into rc.local then your network sript ( rc.inet1 ) has already run and you won't get a connection anyway unless you manually re-run it.
 
Old 03-26-2006, 10:43 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120
Loading the driver is either the task of the hotplug subsystem, but if that fails to recognize your card, you can add a "modprobe" command in the file /etc/rc.d/rc.netdevice yourself. That file "rc.netdevice" may not yet exist by the way. If the Slackware installer had recognized your card, or i fyou would have known at that time what module you needed, it would have setup that file for you automatically. This is the way to do it by hand:
Code:
vi /etc/rc.d/rc.netdevice
Add this single line to it:
Code:
/sbin/modprobe sk98lin
And after saving the file, make it executable:
Code:
chmod +x /etc/rc.d/rc.netdevice
Now, try to reboot and see what happens.

Eric
 
Old 03-26-2006, 01:44 PM   #5
nCode2X
LQ Newbie
 
Registered: Feb 2006
Location: Thailand
Distribution: Slackware Linux 10.2
Posts: 1

Rep: Reputation: 0
Add this line to the file /etc/modules.conf (2.4 kernel) or /etc/modprobe.conf (2.6 kernel)

Code:
alias eth0 sk98lin
 
Old 03-26-2006, 02:36 PM   #6
dont_stop_me
Member
 
Registered: Sep 2005
Location: Romania
Distribution: Slackware 12
Posts: 42

Original Poster
Rep: Reputation: 15
Thank you for your answers, I chose the rc.modules version and it worked.
 
Old 03-26-2006, 02:44 PM   #7
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
I had the same problem, dont_stop_me. I didn't have to do all the things folks have mentioned so far.

I downloaded the latest version of the SK98LIN driver from the 3Com driver downloads web site. It's the first driver listed on that page. It came with an installation shell script that I ran after I untarred the tar file. I selected the Installation Mode option, not the kernel patch option. It compiled the driver source and stuck the object module in /lib/modules/2.4.31/kernel/drivers/net/sk98lin

I can't see where the install script stuck an insmod command anywhere to load the driver, but the eth0 interface now comes up during boot. It's not in rc.local or rc.modules. So I don't understand exactly why it works, but it does.
 
  


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
Trying to load module "ndiswrapper" with modprobe; modprobe ndiswrapper doesn't work! Benjamin Linux - Wireless Networking 30 05-25-2008 07:04 AM
modprobe command doesn't work please help steveman2000 Linux - Newbie 4 10-21-2005 04:12 PM
network card and sk98lin driver issues Normanya Linux - Hardware 1 04-30-2005 05:02 PM
Wierd Samba Problem with Network Speed (using SK98lin driver) g8keepR Linux - Networking 5 02-10-2005 09:21 PM
Can't write to /var/run/console cpeppler Linux - General 2 10-03-2003 07:28 AM

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

All times are GMT -5. The time now is 06:57 PM.

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