LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-15-2006, 12:46 PM   #1
akafitz
LQ Newbie
 
Registered: Jul 2006
Posts: 8

Rep: Reputation: 0
Have to ./load every reboot


I'm trying to get my intel 3945 setup so that it automatically is turned on when I reboot... currently, to get it working, I've got to log in as root, then:

cd root
cd ipw3945-1.0.12/
sudo ./load debug=0
iwconfig eth1 essid MYWIRELESS
ifup eth1

and this will only work when I log in as root... i changed ONBOOT=YES in:

/etc/sysconfig/networking/devices/ifcfg-eth1

and when I reboot, it tries to load eth1 but throws back an error about it not existing.

How can I get this working properly?

Thanks!

Brian
 
Old 07-15-2006, 04:07 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
I think you should write a script, chmod a+x it, place it in /etc/rc.d/init.d and link it from /etc/rc.d/rc<runlevel>.d/S<number><name>. Such links are sorted lexically and files pointed by them are executed at boot.
 
Old 07-15-2006, 04:22 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Please indicate which distro you are using. Different distro's name their startup scripts differently.
The problem could also be a missing alias in /etc/modprobe.conf or a missing /etc/modprobe.d/ipw3945. ( Two ways of doing the same thing. )

When you created the driver, perhaps the "depmod -a" step was skipped. If a library is involved ( I doubt it ), then "ldconfig" may need to be run. Running these can't hurt.

It may be possible that it is expected that your ipw3945 driver is in the initrd file. Perhaps running "mkinitrd" would help.

After running these commands and rebooting, if you have a "network devices" configuration setup program, such as in Yast, run it and see if the device shows up. If it shows up, you device is being loaded on boot, and you can configure your network settings there. The settings will change the contents of your /etc/sysconfig/network/ifcfg-eth0. Please note that your system may use a different naming convention instead such as "/etc/sysconfig/network/ifcfg-eth-bus-pci-0000\:02\:01.0" instead. The network devices configuration program may have a "hardware name" entry on one of its pages where that can be changed.

Good Luck.
 
Old 07-15-2006, 10:26 PM   #4
akafitz
LQ Newbie
 
Registered: Jul 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Smile

I'm running Fedora Core 5 and I think you are right about modprobe...

I opened the modprobe.conf file in etc and this is what it has (no eth1):

alias eth0 b44
alias scsi_hostadapter ata_piix
alias snd-card-0 snd-hda-intel
options snd-card-0 index=0
options snd-hda-intel index=0
remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel

As you suggested, I ran depmod -a and ldconfig (not sure what these do) but they didn't help even after a reboot.

I did try to put the following in the rc.local file in etc but this didn't work either:

cd /root
cd ipw3945-1.0.12
sudo ./load debug=0
iwconfig eth1 essid FITZ
ifup eth1

Thanks for helping me out... its much appreciated

- Brian

========================================

UPDATE:

Got it working by adding the two lines into the modprobe.conf file ( as specified in the install directions - stupid me)

Thanks again!

Last edited by akafitz; 07-15-2006 at 10:58 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
heavy load on FreeBSD stable version 6.0 causes spontaneous reboot Maidros *BSD 10 04-15-2006 01:43 PM
Websites load slow, but once they load, any links inside them load fast smurcoch Mandriva 3 02-06-2006 12:47 AM
No keyboard/mouse after reboot. Requires second reboot to work. rottie Linux - Hardware 6 01-16-2006 05:04 AM
load wireless card at reboot(Fedora 4) beyondreality Linux - Wireless Networking 5 07-01-2005 10:06 AM
Getting GDM to load at reboot? Scarface Slackware 4 10-25-2003 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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