LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2008, 06:17 PM   #1
philspargo
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
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!
 
Old 09-16-2008, 06:24 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
No one can answer that question without knowing what distro you are running.
 
Old 09-16-2008, 06:26 PM   #3
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Quote:
Originally Posted by philspargo View Post
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.
 
Old 09-16-2008, 07:10 PM   #4
philspargo
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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.!
 
  


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
script/service/command executes during shutdown shipon_97 Linux - Newbie 1 08-30-2007 03:19 AM
How to write startup script to run NTFS neosirex Linux - Newbie 4 05-31-2005 07:25 PM
where to write a startup script bnj Linux - Newbie 6 05-27-2005 08:10 AM
trying to write a startup script psytae Debian 5 09-09-2004 09:17 PM
creating shell script that executes as root regardless of who runs the script? m3kgt Linux - General 13 06-04-2004 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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