LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need to write a script that executes on startup! (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-write-a-script-that-executes-on-startup-670355/)

philspargo 09-16-2008 06:17 PM

need to write a script that executes on startup!
 
I need to add insmod usbserial into a startup script. I need some basic tutoring on Linux commands, ideas?
Thanks!

johnson_steve 09-16-2008 06:24 PM

No one can answer that question without knowing what distro you are running.

Uncle_Theodore 09-16-2008 06:26 PM

Quote:

Originally Posted by philspargo (Post 3282467)
I need to add insmod usbserial into a startup script. I need some basic tutoring on Linux commands, ideas?
Thanks!

Well, you probably want modprobe usbserial, not insmod usbserial. How you make it execute on startup depends on your distribution. In Slackware, for example, you put the line

/sbin/modprobe usbserial

at the end of the /etc/rc.d/rc.modules script. In ArchLinux you add usbserial into the MODULES section of /etc/rc.conf
In general, you can try putting the line

/sbin/modprobe usbserial

into the file called /etc/rc.local if it's present and make sure that the file is executable.

philspargo 09-16-2008 07:10 PM

startup script
 
I'm using a Linksys nslu2 and I've installed oww for the 1 wire weather station. I need to install insmod usbserial into a script that will start at bootup. The author suggests using chmod a+ x /opt/etc/init.d/s70usbserial.
I just don't know how to get it inserted in the file!
Thanks for your time.!


All times are GMT -5. The time now is 12:05 PM.