LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-28-2003, 06:35 PM   #1
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
execute mount (or any) command on startup


how do i set my linux box to execute a command (such as mounting a volume) on startup, don't say put the entry in the fstab because i know that already , but i'm trying to mount a pc card, and the fstab is read before the pcmcia services start up, so i need a different approach to automount it, thanx in advance
 
Old 04-28-2003, 07:00 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
well either you create a small script and put it in the appripiate run level /etc/rc[345].d or you put it in the local boot file which might be named differently depending on your distro.

in RH its's /etc/rc.local if i remember correctly!
 
Old 04-28-2003, 07:14 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Haven't got any of your distro's handy,
but in Slack I'd edit my
/etc/pcmcia/ide.opts
(or scsi.opts, if this were what I got)
file to get a pcmcia hard-drive mounted :)

Cheers,
Tink
 
Old 04-29-2003, 07:09 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
editing the /etc/rc.local worked actually, that provided the answer to another question i hadn't asked which is how to execute the 'trackpat drag' command at startup also
killed two birds with one stone!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I execute a cmd on a startup ?? lab123 Linux - Networking 1 09-13-2005 01:42 PM
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 07:31 AM
xinitrc in libranet? how do i execute a command on x startup? bleargh Linux - Software 6 12-12-2004 12:00 AM
execute file at startup? khucinx Programming 1 06-09-2004 12:27 PM
Programs execute at startup Greg21 Linux - Newbie 5 06-05-2003 04:07 PM


All times are GMT -5. The time now is 09:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration