From: Michel Lanners <mlan@cpu.lu>
To: jgrantha@hannover.sgh-net.de
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: Stupid question of the day: Ethernet IP aliases on startup
Date: Wed, 22 Sep 1999 21:12:21 +0200 (CEST) [thread overview]
Message-ID: <199909221912.VAA06565@piglet.cpu.lu> (raw)
In-Reply-To: <199909212103.VAA03918@go.hannover.sgh-net.de>
On 21 Sep, this message from John L Grantham echoed through cyberspace:
>
> Hi all,
>
> My stupid question of the day, on a similar vein to some other questions
> recently: I'm trying to set up my Linux box (PowerMac G3 MT/266, LinuxPPC
> 1999 crossed with YDL 1.1) to start up Ethernet IP aliases each time the
> computer boots. First attempt was using netcfg, which set up the aliases
> okay, and in each case the files for eth0:0 through eth0:7 in
> /etc/sysconfig/ says ONBOOT=YES, but the aliases don't start on boot. So
> I wrote a shell script to do so, and the script works if I call it
> (though it complains that the files already exist, but it does start the
> ports); the script I wrote is in /etc/sysconfig/network-scripts/, with a
> symbolic link pointing to it from /etc/rc.d/init.d/. But no dice--on
> startup, nothing doing, and I have to call the script myself.
What you need is a symbolic link from one (or more) of the directories
/etc/rc.d/rcx.d, called Syy.netscripts, pointing to your script.
The key is that only scripts in those directories are executed, if and
only if the runlevel no. x is entered. Scripts named Syy.something are
called with the argument 'start', those named Kyy.something are called
with 'stop'. In any case, yy is a number that defines the order in which
the scripts are executed.
The standard runlevels are 3 (regular console) or 5 (with X, usually
through xdm).
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email mlan@cpu.lu |
http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~1999-09-22 19:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-21 21:04 Stupid question of the day: Ethernet IP aliases on startup John L Grantham
1999-09-22 19:12 ` Michel Lanners [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199909221912.VAA06565@piglet.cpu.lu \
--to=mlan@cpu.lu \
--cc=jgrantha@hannover.sgh-net.de \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).