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

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
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)

Paul Jakma paulj at alphyra.ie
Mon Jul 9 19:53:33 IST 2001


grrrr.....

the RH network init script starts up interfaces in alphabetical order.
argg... this a problem if you have tunnel interfaces that have a
dependency on other interfaces and the name of the tunnel device
happens to come alphabetically before the name of the device it is
dependent on. eg, cipcb? and eth?.

basically the order is determined by:

ls ifcfg* | egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' |  egrep -v
'(~|\.bak)$' | egrep -v 'ifcfg-ippp[0-9]+$' |  egrep
'ifcfg-[a-z0-9]+$' | sed 's/^ifcfg-//g'

(with /etc/sysconfig/network-scripts as PWD).

so how can i modify the sed so that it spits out any eth? interfaces
before any remaining interfaces? (or any other suggestion as to how to
quickly get this to spit out eth? before other interfaces).

clean solution is maybe for RH to add an "INTERFACES" field to
/etc/sysconfig/network, and use that if it is present. (hmm....)

Also, while i'm at it: /etc/sysconfig/static-routes doesn't support
reject routes or anything but gateway / device routes. think they'd do
the simple thing and make that file just contain lines that are punted
straight on to the route command? no.. that'd be far too fnerkin
obvious!!! instead they have another lairy hairy fscking script
(ifup-routes) to parse the static-routes file.

Sorry, correction, did i say parse? no, it's RH, so they only parse
one or two bits of it and if it matches what they expect they assume
all the rest is fine. (rather than doing a good job of parsing it ->
sanity check everything, and cover as many of the ways of adding
routes as are documented in the bloody man page).

they couldn't do the simple short way (assume admin knows best)... and
they only made a half^Wquarter-arsed attempt at the doing it the long
way.

typical RH... excellent.

--paulj

fnerking bongling redhat scripts......





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