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 :D, 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 :)
|
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! |
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 |
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
:D killed two birds with one stone! |
All times are GMT -5. The time now is 02:49 AM. |