LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-19-2002, 10:22 AM   #1
chaoticanuck
LQ Newbie
 
Registered: Dec 2002
Posts: 7

Rep: Reputation: 0
find, edit and save "startup" file


Hello,

running Linux RH 7.3

I need to add some lines to the start up file:

setserial /dev/ttyS4 uart 16550A port 0x24## irq 11 baud_base 460800 spd_normal skip_test
setserial /dev/ttyS5 uart 16550A port 0x24## irq 11 baud_base 460800 spd_normal skip_test
setserial /dev/ttyS6 uart 16550A port 0x24## irq 11 baud_base 460800 spd_normal skip_test
setserial /dev/ttyS7 uart 16550A port 0x24## irq 11 baud_base 460800 spd_normal skip_test

First ... what is the name of the startup file? I searched for a file "startup" with no success. Besides, due to my inexperience I want to make sure I edit the right file the right way first.

Second ... where is it?

Third ... where is the ideal place to insert those lines?

Fourth ... I'm assuming I save the file in the same format, shut down and restart?

Thanks in advance.
C.
 
Old 12-19-2002, 10:53 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Usually your startup scripts are located in your /etc/rc.d directory.. I do believe you could put something like that in your rc.local file, try searching for that.
 
Old 12-19-2002, 10:56 AM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Try putting them in "/etc/rc.d/rc.local" This file is designed for user modifications, so it shouldn't cause any conflicts with other scripts. If your working on a stock install this file should be empty, so put your lines anywhere. Then:

"shutdown -r now" will reboot your machine. "reboot" may also be a link to this same command.

As for the "startup" file, there are many, including 1 for each run level, and to be exact, they are actually startup "folders" which contain scripts to be run when you enter (and leave) each run level. They are called "rc*.d" where "*" is the number of the run level.

(he he, you're too fast for me tricky!)

Last edited by bulliver; 12-19-2002 at 10:59 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM
Firefox freezes at "Save", "Download" kjmorris Linux - Software 4 10-27-2004 02:44 PM
where can i find "suitable startup script" in my SW10.0? frik Slackware - Installation 1 10-26-2004 08:46 PM
I need to edit "usb.c" and can't find it GM287 Linux - Newbie 4 04-04-2004 11:34 AM
"save file as" using vnc scottsteibel Linux - Newbie 2 08-30-2003 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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