LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2003, 03:25 AM   #1
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Script for dvdrom


Hearing a lot about scripts i thought i would check it out last night and aren't they cool as well as useful.

So i wrote just a simple script for ejecting my dvdrom and it works in my home folder, so i want to see now if i can get it to do the same when i shut my computer down. Can anyone tell where I need to put this file or to some good links with helpful information. This is really only for educational purposes.


Thanks
 
Old 11-24-2003, 09:36 AM   #2
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
iirc the shutdown is sctipt is rc.6 (think thats under redhat) or under rc.d/shutdown. if you just edit either of these and add the script at the beginning of the file it will eject the dvdrom drive before shutting the system down.
 
Old 11-24-2003, 02:35 PM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Original Poster
Rep: Reputation: 62
thanks. i'll give that a try
 
Old 11-25-2003, 01:54 AM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Original Poster
Rep: Reputation: 62
Sorry should have said which OS i was using, mdk 9.1. Got it to work just had to put it in the rc0.d folder, thats the one for shutdown. rc6.d is for reboot, which is good all so.

thanks for the help
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with dvdrom slackermike Slackware 2 10-14-2005 02:34 PM
dvdrom problem kafnir Linux - Hardware 1 04-22-2004 11:42 AM
mounting the dvdrom freewill Linux - Laptop and Netbook 1 01-29-2004 05:30 PM
no dvdrom..? megaman Linux - Hardware 1 12-22-2003 10:08 PM
dvdrom icon athenerx Linux - General 1 12-19-2001 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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