Re: nameif with PCMCIA nics

Pekka Savola <[email protected]> Thu, 4 Sep 2003 09:23:14 +0300 (EEST)
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
On Wed, 3 Sep 2003, Bill Nottingham wrote:
> Dax Kelson ([email protected]) said: 
> > > > In my testing, it is *not*
> > > > working with PCMCIA nics. :(
> > > 
> > > Can you elaborate in what way it isn't working?
> > > 
> > > Bill
> > 
> > Yes, later today.
> 
> Try the attached.

Good for testing, but the real fix probably needs to disregard some 
specific files from "ifcfg-*", like in /etc/init.d/network:

interfaces=`ls ifcfg* | LANG=C egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \
            LANG=C egrep -v '(~|\.bak)$' | \
            LANG=C egrep 'ifcfg-[A-Za-z0-9\._-]+$' | \
            sed 's/^ifcfg-//g'`

-- 
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings