Click to See Complete Forum and Search --> : module forced to install
ukio_net
03-05-2004, 06:24 PM
ok.. i've just installed my old home pna nic.. it's working perfectly but there's a little problem... due to the old of the drivers i had to compile... when i install the module it says that the file was compiled with gcc2 and the kernel it's gcc3..
anyway i installed using -f (insmod -f il ), and it worked...
now my question:
when i reboot i had to login as root and insmod -f again... to had it working again... it's there a way to configure this to do it automatically? a file? script?
thx :confused:
knute
03-05-2004, 06:44 PM
Probably is, but I don't know the syntax.
I was curious though, why you can't just recompile the module for the new kernel, and add it to your /etc/modules.conf file?
ukio_net
03-05-2004, 07:43 PM
i tried it!
i have this in my modules.conf
alias sound-slot-0 emu10k1
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci
alias eth0 il
~
where the last line "alias eth0 il" eth0 it's my nic and il it's the module to install... when i reboot it says eth0 module il could not be found..
ukio_net
03-05-2004, 09:32 PM
now i realize i had another issue... when i reboot my pc... and insmod -f my nic.. i still have to 'route' the gateway using 'route add default gw 172.16.0.1' ...
how can i make it the default ? or to automatically detect it?
sigh^:mad:
knute
03-06-2004, 01:20 AM
Try putting the il in /etc/modules.
Sorry, I am not as familiar with routing and such as I should be, and because I've never really had to work with it, in the words of Sgt. Schultz, "I know nothing! Nothing! Nothing!" :D
I was going to guess, but I don't think that would work so well.
You could try a G4L search on routing and see what you get.
jumpedintothefire
03-07-2004, 12:29 AM
Cool!! I have 2 of those laying around, but bailed when I got that warning. What kernel are you running?
Which distro are you playing with? dhcp or static?
You could configure the nic not be on at boot and use the rc.local file to run whatever commands you need to to get the nic up from there.
ukio_net
03-07-2004, 09:43 PM
yup i made it work..! and works flawlessly...
i'm using fedore core 1, kernel 2.4.22-1.2115.nptl
i got this @ /etc/sysconfig/network-scrips/ifcfg-eth0
DEVICE=eth0
IPADDR=172.16.1.33
NETMASK=255.255.0.0
BROADCAST=255.255.255.255
ONBOOT=yes
~
ok if i edit this rc.local i can put the commands to get up the nic?
like :
insmod -f il
route add default gw xxx.xxx.xxx.xxx
:confused:
jumpedintothefire
03-07-2004, 11:08 PM
Yup...
change ONBOOT=yes to ONBOOT=no
add:
like :
insmod -f il
/sbin/ifup eth0
route add default gw xxx.xxx.xxx.xxx
ukio_net
03-08-2004, 04:10 AM
Originally posted by jumpedintothefire
Yup...
change ONBOOT=yes to ONBOOT=no
add:
like :
insmod -f il
/sbin/ifup eth0
route add default gw xxx.xxx.xxx.xxx
uhmmm i did it.. changed the onboot line and added the insmod -f il to the /etc/rc.local it worked installing the module... but it failed to add the gateway....
:confused:
jumpedintothefire
03-08-2004, 07:55 PM
Try the full path for the route command /sbin/route add .....
ukio_net
03-09-2004, 12:34 AM
still didn't w0rk..
jumpedintothefire
03-09-2004, 03:01 AM
You have to bring the interface "up" first, re-read what I posted.
ukio_net
03-09-2004, 02:20 PM
sheez u were totally right...
i missed the /sbin/ifup eht0 line...
i added to my rc.local and then it worked...
:D
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.