Other Help Topics :: startup files



I'm using a hard drive install, and i did not put the sudo command before it, but that would make sense as it would need to be done as root. I will give that a try, thanks for your help.  Joel
After inserting sudo command it still does not work. Here is the exact line that I added to the .bash_profile :
sudo modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0. If I issue this command from the console, it works perfectly, but not from the .bash_profile on bootup. I'm still baffeled about this, any ideas?

Joel

Try this,
open a console.
zile /usr/sbin/opl3sa2.sh

#! /bin/sh
modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0

Save this file with ctrl + x/ +c / y

chmod 755 /usr/sbin/opl3sa2.sh

ln /usr/sbin/opl3sa2.sh /etc/rc3.d/S22opl3sa2
(to start in init 3)

ln /usr/sbin/opl3sa2.sh /usr/rc5.d/S22opl3sa2
(to start in init 5)

Jogi :cool:

Jogi,

   Thank You, that worked very well, except in the last link line I think you meant for the line to read /etc/rc5.d not /usr/rc5.d, but other than that everything worked out good. I even understand what you did, I was trying to do the same thing, but was not familar with Debian or DSL enough to do it. Thanks!

Say Caulktel, I am glad that you have a solultion. And Jogi's answer is fine if you are hard drive installed. But it doesn't help if you are running a liveCD. I am inserting three modules via .bash_profile and it works both liveCD and hard drive. The answer I was trying to give is to be of benefit to both groups of users.
Next Page...
original here.