LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] bloody redhat network init scripts (and regex's)

[ILUG] bloody redhat network init scripts (and regex's)

kevin lyda kevin at suberic.net
Tue Jul 10 15:00:45 IST 2001


On Tue, Jul 10, 2001 at 01:56:46PM +0100, Paul Jakma wrote:
> On Tue, 10 Jul 2001, kevin lyda wrote:
> > of the file name, not the device.  why not just change the file name?
> ah... obvious yes, and that is what i did initially (have a look in
> network-scripts/ on our firewall)
> 
> however however however... yes: fongdongling redhat init scripts
> 
> some scripts use ifcfg-${DEVICE}, ie ifup, so renaming the ifcfg-*
> scripts breaks that.

no it doesn't.  if i have a file called

    /etc/syscon.../icfg-0000000DO-ME-FIRST-BABY

and it contains:

    DEVICE=eth0
    USERCTL=no
    ONBOOT=no
    BOOTPROTO=dhcp
    BROADCAST=
    NETWORK=
    NETMASK=
    IPADDR=

the command

    ifup 0000000DO-ME-FIRST-BABY

will bring up eth0.

> if only...

...you actually tested what i typed (ignore the spurious error message
emitted by source_config in network-functions).

so let's say you have device alice0 which depends on device bob0.
create the following files (all in /etc/sysconfig/network-scripts):

    ifcfg-bob0		- bob's config
    ifcfg-bob0alice0	- alice's config
    ifcfg-alice0	- alice's config with ONBOOT=no

this way ifup and ifdown on alice0 will work and bob0 will come up
before alice0.

kevin

-- 
kevin at suberic.net          "linux is a cancer"  --steve ballmer
fork()'ed on 37058400      "released 25 august 1991, linux is a virgo" --me
meatspace place: home       linux, not just a star-sign:
http://suberic.net/~kevin                             http://www.linux.com/




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell