LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-28-2002, 06:41 AM   #1
viciousfish
Member
 
Registered: Jun 2002
Location: UK
Distribution: Debian Sarge, Gentoo
Posts: 70

Rep: Reputation: 15
Executing commands on startup


OK. Long story...

My computer came fitted with a WinModem, the Intel-v92-Ham.

Normally unusable under linux, but fortunately some nice people at Intel made some drivers for it, which SuSE packaged with their distro and I installed

The driver consists of two kernel modules, hamcore.o and ham.o. both must be loaded for the modem to work. The device file is /dev/ham

When I start WVDial (or any other dialer) to connect to the net, there is a long pause and plenty of CPU/Hard disc activity. Then WVDial says 'cannot use /dev/ham, device not recognised'. In the error log, I have 'insmod: install block-major-hamcore failed'

However, when I (as root) I say:

#modprobe hamcore
#modprobe ham

WVDial works fine, there is no pause before the modem starts up and all is nice.

There is a script with the driver, called hamboot. This is supposed to load the two modules at boot time, but it doesn't

Now, although I can cope with loading the modules by hand every time I connect, I really want to do it automatically or at boot time. Any ideas?
 
Old 06-28-2002, 06:44 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Sure, you could place them into your modules.conf file in /etc/modules.conf
 
Old 06-28-2002, 06:49 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Or, if that doesn't work, you could put it in the boot script:
/etc/rc.d

modprobe hamcore
modprobe ham
 
Old 06-28-2002, 06:53 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Just reading the man page here about insmod actually sounds like maybe the command you are looking for. It sounds like it "installs" the modules rather than just probing them?
 
Old 06-28-2002, 09:00 AM   #5
viciousfish
Member
 
Registered: Jun 2002
Location: UK
Distribution: Debian Sarge, Gentoo
Posts: 70

Original Poster
Rep: Reputation: 15
That's good, I didn't realize that I could just sit the commands at the bottom of the script and they would execute. I somehow presumed boot scripts to be much more complex.

I have tried insmod, but don't understand what it does. It seems to have exactly the same effect as modprobe. The modules unload again after reboot.
 
Old 06-28-2002, 02:15 PM   #6
#!
Member
 
Registered: May 2001
Distribution: RedHat, 'drake, suse, slack, gentoo, beehive, lfs...
Posts: 43

Rep: Reputation: 15
so you know, that script you have that came with the drivers might need to be setup in the /etc/init.d directory, with the proper symlinks from /etc/rc.d/rc3.d in order to work (but I dunno for sure - I haven't used this stuff).

PS - I think modprobe actually does call insmod. It's kind of a wrapper that loads dependent modules in additon to the one you specify as an argument to modprobe on the command line.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-executing soundcard commands at startup VA3OG Ubuntu 1 11-06-2005 12:25 PM
executing shell commands in c++ true_atlantis Programming 2 10-01-2004 04:53 PM
Executing commands and getting command results. xconspirisist Programming 2 03-11-2004 02:52 PM
Executing commands without using the full path.. LinuxBAH *BSD 2 12-02-2003 07:16 PM
Executing commands in Konsole... meteotrade Linux - General 5 10-20-2003 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:53 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