diff options
author | Bill Nottingham <notting@redhat.com> | 2011-09-30 10:52:05 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-09-30 10:52:05 -0400 |
commit | a28a3f03b42377f50ab46fd669bc93b287c20b11 (patch) | |
tree | e72e708b956ca76f5c3fe19945cb6797f5de9f79 | |
parent | e1afcc44754dab8adc7dd1099fbea61b941e52d9 (diff) | |
download | initscripts-a28a3f03b42377f50ab46fd669bc93b287c20b11.tar initscripts-a28a3f03b42377f50ab46fd669bc93b287c20b11.tar.gz initscripts-a28a3f03b42377f50ab46fd669bc93b287c20b11.tar.bz2 initscripts-a28a3f03b42377f50ab46fd669bc93b287c20b11.tar.xz initscripts-a28a3f03b42377f50ab46fd669bc93b287c20b11.zip |
Be less picky about ifcfg file names. (#742276)
-rwxr-xr-x | rc.d/init.d/network | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index b3dbe7a6..c6b86c37 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -43,10 +43,10 @@ cd /etc/sysconfig/network-scripts # find all the interfaces besides loopback. # ignore aliases, alternative configurations, and editor backup files -interfaces=$(ls ifcfg* | \ +interfaces=$(ls ifcfg-* | \ LC_ALL=C sed -e "$__sed_discard_ignored_files" \ -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \ - -e '/ifcfg-[A-Za-z0-9#\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \ + -e '{ s/^ifcfg-//g;s/[0-9]/ &/}' | \ LC_ALL=C sort -k 1,1 -k 2n | \ LC_ALL=C sed 's/ //') rc=0 |