Re: nameif with PCMCIA nics
Bill Nottingham <[email protected]> Thu, 4 Sep 2003 14:35:48 -0400
| Newsgroups | gmane.linux.redhat.devel |
|---|---|
| Message-ID | <[email protected]> |
Pekka Savola ([email protected]) said: > > > > Can you elaborate in what way it isn't working? > > > > > 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'` Hm, that should probably be abstracted into a function to be used in multiple places. Bill