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


Closed Thread
  Search this Thread
Old 04-24-2002, 03:10 AM   #1
mimi
Member
 
Registered: Apr 2002
Location: Earth globe
Distribution: Red Hat Linux
Posts: 35

Rep: Reputation: 15
Smile startup scripts


I wanna have a small script to give the eth0 multiple address at startup like this:

-----------------------------------------------
#/bin/bash
ifconfig eth0 172.16.204.1
ifconfig eth0 172.16.204.2 alias netmask 255.255.255.0 (it will used to demostrate virtual hosts)
ifconfig eth0 172.16.205.1 alias (the different IP network)
----------------------------------------------------
so i put my scripts in a file called lan_startup.

Now where should I call this scripts?
1-in /etc/bashrc (global functions and aliases)
2-in /etc/profile (system environment and startup programs)
3-/etc/rc.d/rc.local (I know this is used to put specific commands that get executed every time
you boot the computer regardless of runlevel)


Another question: is it possible to put custom scripts in /etc/rc.d/init.d/ and creat a symlink from /etc/rc.d
/rc3.d/ to it or this is only used to put scripts in order to start and stop the
services(servers)like httpd?

Thank u very much in advance.
mimi
 
Old 04-24-2002, 03:22 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
double post.
http://www.linuxquestions.org/questi...threadid=19294
 
  


Closed Thread



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
Startup Scripts?? jimbo-62 Debian 5 07-10-2005 10:23 AM
startup scripts... ValidiusMaximus Linux - Software 8 01-11-2005 05:55 PM
Startup Scripts jhartney Linux - Newbie 3 01-07-2005 01:35 AM
Startup scripts celticselph Slackware 5 04-08-2004 07:23 AM
X Startup Scripts JHuizingh Linux - General 1 09-18-2001 01:02 PM

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

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