Bug 9275 - More flexible ifcfg-*
More flexible ifcfg-*
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2000-02-09 14:40 EST by W. Michael Petullo
Modified: 2014-03-16 22:12 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-02-09 14:40:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description W. Michael Petullo 2000-02-09 14:40:15 EST
The following patch (to my /etc/rc.d/init.d/netword -- version 4.70-1)
allows dots in ifcfg-* filenames.  Allowing dots in the name of the
configuration files is especially useful when using a laptop.  For
examples, two configurations could be named ifcfg-redhat.com and
ifcfg-isp.net could exist.  This is much more descriptive than ifcfg-eth0
and ifcfg-eth1.

--- network     Wed Feb  9 14:26:17 2000
+++ /etc/rc.d/init.d/network    Wed Feb  9 13:47:06 2000
@@ -34,11 +34,11 @@

 # find all the interfaces besides loopback.
 # ignore aliases, alternative configurations, and editor backup files
-interfaces=`ls ifcfg* | egrep -v '(ifcfg-lo|:)' | egrep 'ifcfg-[a-z0-9]+$'
| \
+interfaces=`ls ifcfg* | egrep -v '(ifcfg-lo|:)' | egrep
'ifcfg-[.a-z0-9]+$' | \
             sed 's/^ifcfg-//g'`

-for inter in `ls ifcfg* | egrep -v '(ifcfg-lo|:)' | egrep
'ifcfg-[a-z0-9]+$'`; do
+for inter in `ls ifcfg* | egrep -v '(ifcfg-lo|:)' | egrep
'ifcfg-[.a-z0-9]+$'`; do
       int=`egrep -L "ONBOOT=\"?[Nn][Oo]\"?" $inter | sed 's/^ifcfg-//g'`
       [ -n "$int" ] && interfaces_boot="$interfaces_boot $int"
Comment 1 Bill Nottingham 2000-07-15 14:25:38 EDT
As ifcfg names are used as aliases for modules, this change wouldn't
fit in very well into how initscripts are done now. Sorry.
Comment 2 W. Michael Petullo 2009-09-13 16:14:18 EDT
I just configured a wireless adapter using NetworkManager's nm-connection-editor in Fedora 12 Alpha. The result was a configuration named ifcfg-<Connection Name>.

Note You need to log in before you can comment on or make changes to this bug.