LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-13-2003, 01:28 PM   #1
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Editing Shutdown Script


Hi....I am a linux newbie.....

I have RedHat Linux 8.0 and KDE.

I want to edit my shutdown script as during the boot sequence, I am running a shell script to load the sound and TV Tuner modules. I would like to unload these modules in the shutdown script itself. However, I dont know which is the file that contains the shutdown instructions in RedHat 8.0.

I noticed a shutdown file, however, when i tried to open it using KWrite, it displayes junk characters.

Can anyone let me know the file in which i can place the instructions to unload ths sound and tv tuner drivers? Pls help
 
Old 09-13-2003, 09:10 PM   #2
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Rep: Reputation: 30
Maybe this will point you in the right direction...

You can look at the init scripts in /etc/init.d and make one for you TV stuff. Then you can also look at 'man chkconifg' and check out the -add option to add your script to the startup/shutdown sequence. 'man init' may help as well.

I hope this helps. I know that alot of people write custom scripts like this for Oracle startup/shutdown, so maybe you can look for some info about that on google.
 
Old 09-14-2003, 06:22 AM   #3
windowsrefund
Red Hat Ambassador
 
Registered: Aug 2003
Location: NYC
Distribution: Debian, Redhat
Posts: 73

Rep: Reputation: 15
why would you even shut your machine down? Seriously
 
  


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
text editing from a script vogelbaugh Linux - General 2 09-22-2005 12:53 PM
Editing video_dvd.script webwolf70 Linux - Software 1 08-15-2004 04:39 PM
Specifying a variable without editing my script everytime MasterC Programming 6 04-23-2003 08:09 PM
ID3 Tag Editing with a Shell Script chrisk5527 Linux - General 5 03-20-2003 10:38 PM
file editing in a bash script Harpune Programming 4 11-22-2002 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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