LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-12-2007, 10:12 PM   #1
sgware
LQ Newbie
 
Registered: Jul 2006
Location: New Orleans, LA
Distribution: Kubuntu 6.10: Edgy Eft
Posts: 26

Rep: Reputation: 15
Auto execute shell script on startup, right before use


How can I create (or add to an already existing) shell script that will be executed after the rest of the system is done initializing?

Basically, I have some configuration options that I need to set for the computer in question every time it starts up... and some of them rely on the networking services already being configured.

The OS is Aurora SPARC Linux, which is just Fedora 6 for SPARC chips, using bash as the default. If it matters, there is no GUI system installed on this particular machine... it's a bare-bones command line only box.

I know that several such scripts already exist. I need the one that executes last, so that all the rest of the system configuration will have already taken place.

Last edited by sgware; 11-12-2007 at 10:15 PM.
 
Old 11-12-2007, 11:45 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Sounds like:
/etc/rc.d/rc.local

Code:
cat rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
 
Old 11-13-2007, 12:10 AM   #3
sgware
LQ Newbie
 
Registered: Jul 2006
Location: New Orleans, LA
Distribution: Kubuntu 6.10: Edgy Eft
Posts: 26

Original Poster
Rep: Reputation: 15
Prefect, thank you!
 
  


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
Auto-execute script ishcoleobo Linux - Software 2 12-10-2005 06:26 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
Execute Shell Scripts on startup dragoroberto Linux - Software 9 02-28-2005 08:46 AM
auto execute shell script on startup slackwbas Slackware 9 02-27-2005 10:26 AM
auto execute shell script ykirankumar Linux - Software 3 09-22-2004 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:08 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
Open Source Consulting | Domain Registration